Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] Need to preserver duplicate namespace declarations

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: "Aust, Stefan" <stefan.aust AT coremedia.com>
  • To: <xom-interest AT lists.ibiblio.org>
  • Subject: [XOM-interest] Need to preserver duplicate namespace declarations
  • Date: Tue, 9 Aug 2005 12:16:17 +0200

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>

and need to regenerate those duplicate namespace declaration later on.
It seems that XOM is a bit too clever and optimizes the namespace
declarations. When I try to serialize the XOM, I cannot distinguish the
above case from the equivalent:

<a:x xmlns:a="urn:1">
<a:y>
...
</a:y>
</a:x>

Any ideas how to solve this problem?

Regards,

--
Stefan Matthias Aust




Archive powered by MHonArc 2.6.24.

Top of Page