Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Problem creating the right namespace.

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: "Christian-Josef Schrattenthaler" <hotline AT software-agentur.com>
  • To: <XOM-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] Problem creating the right namespace.
  • Date: Wed, 25 Feb 2009 11:44:13 +0100

Thanks to Michael Kay!



I created a String called ns with the standard namespace
(xmlns="http...") and on each 'new Element("element", ns) I used it as
second parameter. Now I have no emtpy xmlns="" attributes on the child
elements.



Now there is only the problem with the
'xsi:schemaLocation="http://...";', which should also be added as
namespace or attribute to the root element.



Greetings,

Christian.





Archive powered by MHonArc 2.6.24.

Top of Page