comment()


The comment() node test retains comment nodes, which are children and siblings of element nodes or are children of the root node. Consider the following XML document.

 <?xml version="1.0" encoding="ISO-8859-1"?> <!- here is an Insured -> <Insured><CarPolicy><!- Cancelled -></CarPolicy></Insured> 

The next expression resolves to the contents of the second comment, including the space that precedes and follows the word Cancelled.

 /descendant::comment()[2] 




SOA for the Business Developer. Concepts, BPEL, and SCA
SOA for the Business Developer: Concepts, BPEL, and SCA (Business Developers series)
ISBN: 1583470654
EAN: 2147483647
Year: 2004
Pages: 157
Authors: Ben Margolis

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net