Hi;
The namespace repair option seems to screw up the use of default namespaces which we have also. Is there way to get this where some attributes can use the default namespace?
We are writing DOCX files and so we need to use the namespaces of the XML files in the DOCX file.
--
You received this message because you are subscribed to the Google Groups "Woodstox User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
woodstox-use...@googlegroups.com.
To post to this group, send email to
woodst...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/woodstox-user/CAGrxA26aGiieo9bauMicyA95eGHsGNqjn13tedXuqd%2B%2Bp-5RbQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Hi;
The namespace repair option seems to screw up the use of default namespaces which we have also. Is there way to get this where some attributes can use the default namespace?
We are writing DOCX files and so we need to use the namespaces of the XML files in the DOCX file.
From: woodst...@googlegroups.com [mailto:woodstox-user@googlegroups.com] On Behalf Of Tatu Saloranta
Sent: Monday, June 11, 2018 10:57 PM
To: David Thielen <da...@windward.net>
Cc: Woodstox User Mailing List <woodstox-user@googlegroups.com>
Subject: Re: How can I write an XML string in Stax without duplicating namespaces
On Sun, Jun 10, 2018 at 1:41 PM, David Thielen <da...@windward.net> wrote:
Part way through creating an XML file with Stax I have some XML in the form of a String. I write this to the Stax output.
It all works great except namespaces used in the passed in XML, that are defined in the root element, are duplicated again in the inner nodes.
I know this is legal, but it's cluttered. Is there any way to avoid this?
If there is already an existing valid binding (*) for Namespace URI, that should be used. So Woodstox should already handle this, if (and only if) generator has "namespace repairing"
mode enabled. If behavior differs, filing a bug report would make sense.
-+ Tatu +-
(*) attributes can not use default namespace binding, for example; but this example used explicit prefixes not default namespace
--
You received this message because you are subscribed to the Google Groups "Woodstox User Mailing List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to woodstox-user+unsubscribe@googlegroups.com.
To post to this group, send email to woodst...@googlegroups.com.