forked from kripken/xml.js
-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.html
34 lines (30 loc) · 979 Bytes
/
index.html
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
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<title>XML validation and normalization</title>
</head>
<body>
<div>
<textarea id="xml" cols="80" rows="40"><?xml version="1.0"?>
<!-- XML content – insert by copy & paste -->
<root>
<content>Hello, world!</content>
</root>
</textarea>
<textarea id="schema" cols="80" rows="40"><?xml version="1.0"?>
<!-- XML schema – insert by copy & paste -->
</textarea>
<textarea id="messages" cols="80" rows="40">Messages – editing is pointless</textarea>
</div>
<div>
<button type="button" id="validate">Validate</button>
<button type="button" id="normalize">Normalize</button>
</div>
<script type="module">
import {validate, normalize} from './logic.js';
document.querySelector('#validate').addEventListener('click', validate);
document.querySelector('#normalize').addEventListener('click', normalize);
</script>
</body>
</html>