Let me see if I got this straight. You want that regardless of the
namespace in the document, XmlBeans to consider it as having no
namespace at all. If this is correct, I have to say I find it pretty
strange. You can do two things:
 
1. Try using .setLoadUseXMLReader() and pass in a Reader that doesn't
use namespaces
2. Write a SAX filter that strips the namespace before passing the
events to XMLBeans; this is not as difficult as it may sound.
 
I suppose that we could always add an option for XMLBeans to do this
automatically; but first, is this a good characterization of what you
had in mind?
 
Radu

________________________________

From: Webber, David (NIH/OD) [C] [mailto:[EMAIL PROTECTED] 
Sent: Thursday, November 16, 2006 9:01 AM
To: user@xmlbeans.apache.org
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

 

_______________________________________________________________________
Notice:  This email message, together with any attachments, may contain
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated
entities,  that may be confidential,  proprietary,  copyrighted  and/or
legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it.

Reply via email to