xml-xmlbeans-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Paransky <ap...@standardset.com>
Subject Unable to parse documents generated from elementFormDefault='unqualified' schemas.
Date Fri, 26 Mar 2004 23:24:46 GMT
Dear XmlBean Users:

We have compiled a schema using XmlBeans which contains 
elementFormDefault='unqualified'.  When we receive a request, the 
document does not contain any name space references.  Trying to 
XmlObject.Factory.parse(...) the input, produces a type of XmlObject 
(Any)  instead of the actual generated XmlBeans type.  If we modify the 
data which is being passed to us, by replacing <xxxx with <nss:xxxx 
xmlns:nss="someNamespace"  the parsing works ok and the proper XmlBeans 
class is returned.

Here are few questions then:

1. Is this working as expected
2. Is elementFormDefault referes to the XMLSchema definition (meta data) 
instead of the actual document and the actual document should always 
have namespaces?
3. Should XmlBeans be able to parse a document which does not have 
namespaces in it
4. Assuming we continue getting such a document, what is the best way to 
fix it without doing a String.replace("<xxxx", "<nss:xxxx") type of 
operation

Thanks.

-- 
-AP_
http://www.myprofiles.com/member/profile/apara_personal
http://www.myprofiles.com/member/profile/apara_business



- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-user-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/


Mime
View raw message