Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Need to preserver duplicate namespacedeclarations

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: xom-interest AT lists.ibiblio.org
  • Subject: Re: [XOM-interest] Need to preserver duplicate namespacedeclarations
  • Date: Tue, 09 Aug 2005 19:35:04 -0400

Wolfgang Hoschek wrote:
If one wanted to recreate the exact same XOM document, preserving additional namespace declarations "as is" is key.

What constitutes the "exact same document" is a matter of some debate. XOM is never going to provide exact handling of white space inside tags, character references, the formatting of the DTD, and so forth; and I don't think you really want it to. Once you've ruled out the idea of byte-per-byte equivalence, I doubt any one model will satisfy everyone perfectly. XOM very closely follows the XPath 1.0 data model, with a few small exceptions. (XOM does provide access to the DOCTYPE declaration that XPath doesn't. It also makes some effort to maintain base URIs.) I agree with Michael Kay that the XPath data model is more sensible than the full Infoset model. However, these are hardly the only two such models; and others are possible.


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