-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.html
46 lines (39 loc) · 1.59 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
<html lang="en">
<head>
<meta charset="utf-8">
<title>pjXML - Pure JavaScript XML Library</title>
<meta name="description" content="pjXML - The Pure JavaScript XML library.">
<meta name="author" content="Scott Means">
<link rel="stylesheet" href="css/style.css?v=1.0">
<!--[if lt IE 9]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<script src="js/jquery-1.11.3.min.js"></script>
</head>
<body>
<h1>pjXML - Pure JavaScript XML Library</h1>
<p>There are several XML wrapper libraries available for JavaScript that use
native XML objects (like <code>XMLHttpRequest</code>) to parse XML and provide
DOM access to the underlying document. This library is designed to provide
identical functionality on both the client and server sides for parsing,
manipulating, and emitting XML documents.</p>
<h2>usage</h2>
<pre class="code">
<script src="js/pjxml.js"></script>
. . .
var doc = pjXML.parse('<root>Hello,&#160;XML.</root>');
</pre>
<textarea name="sampleXML" cols="60" rows="10"><!--Hello, comment.--><root>Hello,&#160;XML.</root></textarea>
<p><button name="parseSample">parse</button></p>
<p><label>select</label><input type="text" name="xpath"/><br/>
<pre name="selectResult"></pre></p>
<h3>JSON:</h3>
<pre name="sampleJson"></pre>
<h3>text:</h3>
<pre name="sampleText"></pre>
<h3>XML:</h3>
<pre name="sampleXML"></pre>
<script src="js/pjxml.js"></script>
<script src="js/main.js"></script>
</body>
</html>