Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] XOM 1.1: XPath

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Harold <elharo AT metalab.unc.edu>
  • To: Wolfgang Hoschek <whoschek AT lbl.gov>
  • Cc: "'Bradley S. Huffman'" <hip AT a.cs.okstate.edu>, xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] XOM 1.1: XPath
  • Date: Tue, 11 Jan 2005 17:09:21 -0500

I think I've figured out how to state the basic principle concisely:

An XPath expression applied to a XOM Document should return the same information as the same expression applied to the serialized form of that Document.

In other words, take a XOM document, query it with an XPath expression, print out the resulting nodes with toXML.

Take the same XOM document; serialize it; query the serialized form of an XML document with the same XPath expression using a tool like Alex Chafee's XPath Explorer.

You should get the same results in both cases.

--
Elliotte Rusty Harold elharo AT metalab.unc.edu
XML in a Nutshell 3rd Edition Just Published!
http://www.cafeconleche.org/books/xian3/
http://www.amazon.com/exec/obidos/ISBN=0596007647/cafeaulaitA/ref=nosim




Archive powered by MHonArc 2.6.24.

Top of Page