8,906
社区成员
发帖
与我相关
我的任务
分享
html>
<head> <title> book1.xml display </title> </head>
<body> <xml id="dso1" src="book1.xml"> </xml>
<h3> book1 document content </h3>
<table datasrc="#dso1" border="1">
<thead> <th>title</th> <th>author</th> <th>price</th>
</thead>
<tr><td><span datafld="title"></span></td>
<td><span datafld="author"></span></td>
<td><span datafld="price"></span></td>
</tr>
</table>
<table datasrc="#dso1" border="2">
<thead><th>title</th><th>author</th><th>price</th></thead>
<tr><td><span datafld="title"></span></td>
<td><span datafld="author"></span></td>
<td><span datafld="price"></span></td></tr>
</table>
</body>
</html>
<?xml version="1.0"?>
<!DOCTYPE books [
<!ELEMENT books (book)*>
<!ELEMENT book (title, author, price)>
<!ELEMENT title (#PCDATA)>
<!ELEMENT author (#PCDATA)>
<!ELEMENT price (#PCDATA)>
]>
<books>
<book>
<title>bname1</title>
<author>aname1</author>
<price>$100</price>
</book>
<book>
<title>bname2</title>
<author>aname2</author>
<price>$200</price>
</book>
<book>
<title>bname2</title>
<author>aname2</author>
<price>$200</price>
</book>
<book>
<title>bname2</title>
<author>aname2</author>
<price>$23453400</price>
</book>
<book>
<title>bname2</title>
<author>aname2</author>
<price>$200</price>
</book>
<book>
<title>bname1</title>
<author>aname1</author>
<price>$1dfdfs00</price>
</book>
<book>
<title>bname2</title>
<author>aname2</author>
<price>$200</price>
</book>
<book>
<title>bname2</title>
<author>aname2</author>
<price>$200</price>
</book>
<book>
<title>bname2</title>
<author>aname2</author>
<price>$200</price>
</book>
<book>
<title>bname2</title>
<author>aname2</author>
<price>$200</price>
</book>
<book>
<title>bname2</title>
<author>aname2</author>
<price>$200</price>
</book>
<book>
<title>bname2</title>
<author>aname2</author>
<price>$200</price>
</book>
<book>
<title>bname1</title>
<author>aname1</author>
<price>$1dfdfs00</price>
</book>
<book>
<title>bname2</title>
<author>aname2</author>
<price>$200</price>
</book>
<book>
<title>bname2</title>
<author>aname2</author>
<price>$200</price>
</book>
<book>
<title>bname2</title>
<author>aname2</author>
<price>$200</price>
</book>
<book>
<title>bname2</title>
<author>aname2</author>
<price>$200</price>
</book><book>
<title>bname2</title>
<author>aname2</author>
<price>$200</price>
</book>
<book>
<title>bname2</title>
<author>aname2</author>
<price>$200</price>
</book>
<book>
<title>bname1</title>
<author>aname1</author>
<price>$1dfdfs00</price>
</book>
<book>
<title>bname2</title>
<author>aname2</author>
<price>$200</price>
</book>
<book>
<title>bname2</title>
<author>aname2</author>
<price>$200</price>
</book>
<book>
<title>bname2</title>
<author>aname2</author>
<price>$200</price>
</book>
<book>
<title>bname2</title>
<author>aname2</author>
<price>$200</price>
</book>
</books>