<TABLE
name="channel">
.
<TABLE-PATH syntax="XPath"> /rss/channel/item </TABLE-PATH>
syntax="XPath"
.
If an XML namespace is defined with the NAMESPACES element,
you must specify the type of syntax as XPathENR (XPath with Embedded
Namespace Reference). This is because the syntax is different from
the XPath specification. For example, syntax="XPathENR"
.
If an XML namespace is defined with the NAMESPACES element,
you must include the identification number in the location path preceding
the element that is being defined. The identification number is enclosed
in braces. For example, <TABLE-PATH syntax="XPathENR">/Table/{1}Hurricane</TABLE-PATH>
.
The XPath construction is a formal specification that puts a path description similar to UNIX on each element of the XML structure. Note that XPath syntax is case sensitive. For example, if an element tag name is uppercase, it must be uppercase in the location path. If it is lowercase, it must be lowercase. All location paths must begin with the root-enclosing element (denoted by a slash '/') or with the "any parent" variant (denoted by double slashes '//'). Other W3C documented forms are not currently supported.
<TABLE-PATH
syntax="XPath"> /rss/channel </TABLE-PATH>
,
the XML engine would process the entire XML document, even though
it does not store new data in the input buffer after it encounters
the first <ITEM> start tag because the remaining elements no
longer qualify. The TABLE-END-PATH location path <TABLE-END-PATH
syntax="XPath" beginend="BEGIN"> /rss/channel/item </TABLE-END-PATH>
tells
the XML engine to stop processing when the <ITEM> start tag
is encountered.
<?xml version="1.0" encoding="ISO-8859-1" ?>
<rss version="0.91">
<channel>
<title>WriteTheWeb</title>
<link>http://writetheweb.com</link>
<description>News for web users that write back
</description>
<language>en-us</language>
<copyright>Copyright 2000, WriteTheWeb team.
</copyright>
<managingEditor>editor@writetheweb.com
</managingEditor>
<webMaster>webmaster@writetheweb.com</webMaster>
<image>
<title>WriteTheWeb</title>
<url>http://writetheweb.com/images/mynetscape88.gif
</url>
<link>http://writetheweb.com</link>
<width>88</width>
<height>31</height>
<description>News for web users that write back
</description>
</image>
<item>
<title>Giving the world a pluggable Gnutella</title>
<link>http://writetheweb.com/read.php?item=24</link>
<description>WorldOS is a framework on which to build programs
that work like Freenet or Gnutella-allowing distributed
applications using peer-to-peer routing.</description>
</item>
<item>
.
.
.
</channel>
</rss>
syntax="XPath"
.
If an XML namespace is defined with the NAMESPACES element,
you must specify the type of syntax as XPathENR (XPath with Embedded
Namespace Reference). This is because the syntax is different from
the XPath specification. For example, syntax="XPathENR"
.
<TABLE-END-PATH syntax="XPathENR">/Table/{1}Hurricane</TABLE-END-PATH>
.
The XPath construction is a formal specification that puts a path description similar to UNIX on each element of the XML structure. Note that XPath syntax is case sensitive. For example, if an element tag name is uppercase, it must be uppercase in the location path. If it is lowercase, it must be lowercase. All location paths must begin with the root-enclosing element (denoted by a slash '/') or with the "any parent" variant (denoted by double slashes '//'). Other W3C documented forms are not currently supported.