logo       

Accepting any URL on the default namespace declaration: msg#00019

text.xml.xmlbeans.user

Subject: Accepting any URL on the default namespace declaration

Just trying to puzzle out the XmlOptions for the Factory.parse – the FAQ and the Javadoc gives some parameters – but no guide to their usage / purpose.  Not always clear from the name of the parameter.

 

What I’m attempting to do is to have the namespace declaration URL be ##any – instead of enforced to be a specific URL value.

 

E.g.

 

<myxml xmlns=”foobar.com/mustbe/this/that”>

  <test/>

</myxml>

 

Where the namespace URL is forced to match the value put in targetNamesSpace in the XSD that was used to generate the XMLBeans.

 

I want to relax that check and allow any URL to be used for the default namespace.

 

Thanks,

 

David Webber

 

http://drrw.net

 

<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise