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 Andre de Souza
is regarding it as invalid. Could you take a look at the message XMLBeans reported and see if there's any inconsistency on the XML file I attached to my 1st message? Thanks. Andre de Souza Costello, Robert wrote: Have you tried validating the input against the schema using the XMLBeans API

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