xom-interest AT lists.ibiblio.org
Subject: XOM API for Processing XML with Java
List archive
Re: [XOM-interest] Need to preserver duplicate namespacedeclarations
- 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
-
[XOM-interest] Need to preserver duplicate namespace declarations,
Aust, Stefan, 08/09/2005
-
Re: [XOM-interest] Need to preserver duplicate namespace declarations,
Elliotte Harold, 08/09/2005
-
Re: [XOM-interest] Need to preserver duplicate namespacedeclarations,
Michael Kay, 08/09/2005
-
Re: [XOM-interest] Need to preserver duplicate namespacedeclarations,
Wolfgang Hoschek, 08/09/2005
-
Re: [XOM-interest] Need to preserver duplicate namespacedeclarations,
Elliotte Harold, 08/09/2005
- Re: [XOM-interest] Need to preserver duplicate namespacedeclarations, Wolfgang Hoschek, 08/09/2005
-
Re: [XOM-interest] Need to preserver duplicate namespacedeclarations,
Elliotte Harold, 08/09/2005
-
Re: [XOM-interest] Need to preserver duplicate namespacedeclarations,
Wolfgang Hoschek, 08/09/2005
-
Re: [XOM-interest] Need to preserver duplicate namespacedeclarations,
Michael Kay, 08/09/2005
-
Re: [XOM-interest] Need to preserver duplicate namespace declarations,
Elliotte Harold, 08/09/2005
Archive powered by MHonArc 2.6.24.