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: Wolfgang Hoschek <whoschek AT lbl.gov>
- To: Michael Kay <mike AT saxonica.com>
- Cc: 'Elliotte Harold' <elharo AT metalab.unc.edu>, xom-interest AT lists.ibiblio.org
- Subject: Re: [XOM-interest] Need to preserver duplicate namespacedeclarations
- Date: Tue, 9 Aug 2005 15:50:39 -0700
If one wanted to recreate the exact same XOM document, preserving additional namespace declarations "as is" is key. In this context it's not really relevant to what extent model XYZ treats things as different or identical; I'd like things round-tripped "as is", under any and all circumstances. The only efficient way I found to do this is via a new method getAdditionalNamespaceDeclarations(), as outlined before.
[Incidentally this speeds up bnux over namespaced documents by a factor 3, both on serialization and deserialization, now closely matching performance on documents that have no namespaces at all.]
Wolfgang.
On Aug 9, 2005, at 1:51 PM, Michael Kay wrote:
Technically, these two documents to have different InfoSets, though I think
that's a bad mistake personally. In the XPath data model they are identical.
Michael Kay
http://www.saxonica.com/
-----Original Message-----
From: xom-interest-bounces AT lists.ibiblio.org
[mailto:xom-interest-bounces AT lists.ibiblio.org] On Behalf Of
Elliotte Harold
Sent: 09 August 2005 12:35
To: Aust, Stefan
Cc: xom-interest AT lists.ibiblio.org
Subject: Re: [XOM-interest] Need to preserver duplicate
namespacedeclarations
Aust, Stefan wrote:
Hello,
I'm a happy XOM user so far but know I've a problem I didn't find an
easy solution.
I need to preserve this structure
<a:x xmlns:a="urn:1">
<a:y xmlns:a="urn:1">
...
</a:y>
</a:x>
Can you explain why you need to do this? I can't imagine that they're
different to a namespace aware application.
--
?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 mailing list
XOM-interest AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/xom-interest
_______________________________________________
XOM-interest mailing list
XOM-interest AT lists.ibiblio.org
http://lists.ibiblio.org/mailman/listinfo/xom-interest
-
[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.