Re: While parsing with xmlBeans, sub branch is coming null

2010-11-09 Thread olamalam
Hello Tim, Thanks for your reply. I'm developing an integration project and I created that xsd file from the xml file that our client sends us. I tried several different tools but none of them creates a targetnamespace from the xml file that I attached. When I try to assign a namespace manually

Re: While parsing with xmlBeans, sub branch is coming null

2010-11-09 Thread Tim Watts
This is quite a mess. I'm assuming you have to accept the input as is. Basically you've got 4 different XML vocabularies active in each xml instance doc: * The 1st one, which isn't in any namespace at all, containing only the {iq} element as well as ALL the attributes in ALL the

While parsing with xmlBeans, sub branch is coming null

2010-11-08 Thread olamalam
Hi to all, Actually, I'm not new to XmlBeans :) however I've faced with a problem for the first time and couldn't solve it. Im using xmlBeans 2.4.0 and the xml file I'm trying to parse and it's schema are attached. I created the .jar file by using scomp command properly but when I parse the

Re: While parsing with xmlBeans, sub branch is coming null

2010-11-08 Thread Tim Watts
I could be wrong, but the odd thing I noticed was that the .xsd doesn't have a targetNamespace attr. I don't think simply declaring a namespace in the .xsd makes it part of the xml schema being defined. But maybe I'm misunderstanding your intent. It looks like you're trying to define a schema that