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
Yes, I validated the input XML using the XMLBeans API (see the java class attached to my 1st message) and the error message indicates the input is invalid. Since the editors I mentioned and I myself could not see anything wrong with the input file, I don't understand why XMLBeans is

Re: XMLBeans regarding valid XML file as invalid?

2008-07-15 Thread Jacob Danner
I think the difference in the editor validation is you validated the instance as XML (thats what eclipse does) which is different than validating it against the schema type you had specified in your code. -jacobd On Tue, Jul 15, 2008 at 8:57 AM, Andre de Souza [EMAIL PROTECTED] wrote: Yes, I

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