xml version="1.0" encoding="UTF-8"?>
<catalog xmlns="">
<book id="bk101">
<author>Matthewauthor>
<title>XML Developertitle>
<genre>Computergenre>
<price>44.95price>
<publish_date>2000-10-01publish_date>
<description>After an inadvertant description>
book>
<book id="bk109">
<author>Kress, Peterauthor>
<title>Paradox Losttitle>
<genre>Science Fictiongenre>
<price>6.95price>
<publish_date>2000-11-02publish_date>
<description>James Salway discoversdescription>
book>
catalog>
<catalog xmlns="">
<book id="bk101">
<author>Matthewauthor>
<title>XML Developertitle>
<genre>Computergenre>
<price>44.95price>
<publish_date>2000-10-01publish_date>
<description>After an inadvertant description>
book>
<book id="bk109">
<author>Kress, Peterauthor>
<title>Paradox Losttitle>
<genre>Science Fictiongenre>
<price>6.95price>
<publish_date>2000-11-02publish_date>
<description>James Salway discoversdescription>
book>
catalog>
对应的概念术语:
对应的API接口(暂且这么称呼):
<book id="bk109"> book> 就是 IXMLDOMNode
所有的<book> 就是 IXMLDOMNodeList author、title、price 这些则是 IXMLDOMElement author、title、price 的值则是 IXMLDOMText
没有评论:
发表评论