-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
46 lines (44 loc) · 1.7 KB
/
index.html
File metadata and controls
46 lines (44 loc) · 1.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
<!DOCTYPE html>
<html lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>Application</title>
<script type="text/javascript" src="xml.creator.js"></script>
<script>
var XML = new XMLCreator();
XML.masterNode = XML.createNode('FileList');
for(var i = 0; i < 10; i++) {
var node = XML.createNode(
'File',
[
XML.createNode('name', 'sample' + i + '.txt'),
XML.createNode(
'Inner',
[
XML.createNode('name', 'sample' + i + '.txt'),
XML.createNode('option', 'db' + i),
XML.createNode(
'evenInner',
[
XML.createNode('deepName', 'deep-node-'+i ),
XML.createNode(
'deep',
[
XML.createNode('soDeep', 'nomore' + i)
]
)
]
)
])
]);
XML.appendNode(XML.masterNode, node);
XML.nodes.push(node);
}
document.write(XML.parseToXML());
</script>
</head>
<body>
<div id="content">
</div>
</body>
</html>