xmlbeans-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cbryant <cbry...@solekai.com>
Subject Re: FW: SchemaDocument parse problem
Date Tue, 05 Sep 2006 16:21:26 GMT

The overload of the parse method that takes a String, treats the argument as
XML (which explains the cryptic Exception message).

When creating an XmlObject from a file, you must pass in a File object.
I.e.:

return SchemaDocument.Factory.parse(new
File("C:\\test\\MetadataFileSystem\\PO.xsd"));

-Coram
-- 
View this message in context: http://www.nabble.com/FW%3A-SchemaDocument-parse-problem-tf2211098.html#a6155258
Sent from the Xml Beans - User forum at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org


Mime
View raw message