XMLBeans regarding valid XML file as invalid?

2008-07-15 Thread Andre de Souza
Hi all, I used scomp to generate a parser for an XML file which root element is expected to be WorkflowManagerInstanceDescriptor. The input file for scomp is the attached WorkflowManager.xsd file. I created an XML file (UnsecureWorkflow1.xml) and validated it against the schema using

Re: XMLBeans regarding valid XML file as invalid?

2008-07-15 Thread Jacob Danner
Its because your code is using the Type instead of the Document. If you use WorkflowManagerInstanceDescriptorDocument in your code instead these errors should go away. You can read a little more about why this is so here,

Re: XMLBeans regarding valid XML file as invalid?

2008-07-15 Thread Andre de Souza
Costello -Original Message- From: Andre de Souza [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2008 10:23 AM To: user@xmlbeans.apache.org Subject: XMLBeans regarding valid XML file as invalid? Hi all, I used scomp to generate a parser for an XML file which root element

Re: XMLBeans regarding valid XML file as invalid?

2008-07-15 Thread Jacob Danner
-Original Message- From: Andre de Souza [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2008 10:23 AM To: user@xmlbeans.apache.org Subject: XMLBeans regarding valid XML file as invalid? Hi all, I used scomp to generate a parser for an XML file which root element is expected

Re: XMLBeans regarding valid XML file as invalid?

2008-07-15 Thread Andre de Souza
It works! Using the Document instead of the Type does the trick. Thank you everyoby. Andre de Souza Jacob Danner wrote: Its because your code is using the Type instead of the Document. If you use WorkflowManagerInstanceDescriptorDocument in your code instead these errors should go