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 away.
You can read a little more about why this is so here,
http://xmlbeans.apache.org/docs/2.0.0/guide/conJavaTypesGeneratedFromUserDerived.html
HTH,
-jacobd

On Tue, Jul 15, 2008 at 8:22 AM, Andre de Souza <[EMAIL PROTECTED]> wrote:

 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 both Eclipse and Oxygen. For that reason, I believe the XML
file is valid.
 However, when parsing it using the generated XMLBeans parser, I can't
retrieve the information. Executing the attached java class gives an error
message that claims the XML file isn't valid. So, have scomp not generated
the parser appropriately or is one of my files invalid?




error: cvc-complex-type.2.4a: Expected element
'[EMAIL 
PROTECTED]://workflowmanagerservice.workflow.cagrid.org/WorkflowManagerService'
instead of
'[EMAIL 
PROTECTED]://workflowmanagerservice.workflow.cagrid.org/WorkflowManagerService'
here
error: cvc-complex-type.2.4c: Expected element
'[EMAIL 
PROTECTED]://workflowmanagerservice.workflow.cagrid.org/WorkflowManagerService'
before the end of the content









---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to