Hi,

My aim is to get an instance XML from a schema.

When the schema contains an import it gives following problem.(Though I
have a EntityResolver)

 

org.apache.xmlbeans.XmlException: error: URL "prod.xsd" is not
well-formed

      at
org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaT
ypeSystemCompiler.java:225)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

      at java.lang.reflect.Method.invoke(Unknown Source)

      at org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:667)

      at org.apache.xmlbeans.XmlBeans.compileXsd(XmlBeans.java:553)

      at
com.Schema2Instance.printSchema2Instance(Schema2Instance.java:75)

      at com.Schema2Instance.main(Schema2Instance.java:30)

 

 

What I feel is , though my entity resolver is able to resolve the
imported schema and correctly returns , still it tries to make a URL
object for the schema location and subsiquently it fails.

 

I am attahing the test program which u can simply run and the error will
get printed to console.

 

Please help me.Its yrgent for me.

 

Regards,

Siddharth


***********************************************************************
The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee. Access to this 
message by anyone else is unauthorized. If you are not the 
intended recipient, any disclosure, copying, or distribution of the 
message, or any action or omission taken by you in reliance on 
it is prohibited and may be unlawful. Please immediately contact 
the sender if you have received this message in error. This email 
does not constitute any commitment from Cordys Holding BV or 
any of its subsidiaries except when expressly agreed in a written 
agreement between the intended recipient and 
Cordys Holding BV or its subsidiaries.
***********************************************************************


Attachment: Schema2Instance.java
Description: Schema2Instance.java

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

Reply via email to