Hi,
I get the following error when trying to compile a XML Schema by passing a
org.w3c.dom.Element to the XmlBeans.compileXmlBeans() function:

reson: Thread main: The 0th supplied input is not a schema document: its type is N=

The error is caused not by all Element (s) i pass to the function, only by a subset, for example when I get the XSD from a file this way in Java:

DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
Document doc_input = factory.newDocumentBuilder().parse(new File(xsd_input));
Element the_element_to_pass = doc_input.getDocumentElement();

When I get the Element from another XML lib and pass it, it works...

Any idea what's wrong with the Element I loaded from file and extracted with getDocumentElement() ?

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to