Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] RE: XPath support in XOM

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: norwoods <norwoods AT gbronline.com>
  • Cc: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] RE: XPath support in XOM
  • Date: Mon, 10 Jan 2005 14:17:11 -0500

norwoods wrote:

if xml does not allow adjacent text nodes and xom only allows correct xml, shouldn't a xom text node insert operation adjacent to an existing text node combine the strings into the existing text node? would this not eliminate the xpath problem?

It's not XML that doesn't allow adjacent text nodes. It's XPath. At one point early on I had planned to make XOM disallow (or automerge) adjacent text nodes just to avoid this problem. However, I was convinced otherwise. At this point, though, I think I'm sticking to my guns. XPath is defined on a data model that does not allow adjacent text nodes, and to query XOM with XPath we need to account for that.

--
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