Hello,

I'd like to create XmlBeans to represent existing XML documents that do not have namespace declarations. Other than that the xml is well formed.

Unfortunately I can't seem to coax XmlBeans to parse valid XML that is missing the namespace. F.E.

<test>
        <abc>text</abc>
</text>

Error message:
The document is not a [EMAIL PROTECTED]://www.test.com/test: document element namespace mismatch expected "http://www.test.com/test"; got ""

I couldn't find some XmlOptions that would help. setUseDefaultNamespace() didn't work.

What would the best practice here be? I'm hoping there is a way to tell XmlBeans to stop verifying the document type.

Should I rewrite the XML so it contains the namespace?

Thanks for any suggestions.

--
Free replacement for Exchange and Outlook (Contacts and Calendar)
http://www.ScheduleWorld.com/
WAP: http://www.ScheduleWorld.com/sw/WAPToday?id=4000&tz=EST
WebDAV: http://www.ScheduleWorld.com/sw/webDAVDir/4000.ics
VFREEBUSY: http://www.ScheduleWorld.com/sw/freebusy/4000.ifb

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to