Well, it looks to me that this is a little beyond XMLBeans. Can you try just using Xerces without XMLBeans to parse the same document? If you have the same error, then you'll obviously have to fix that before you can expect that it will work with XMLBeans, if not, then we have to figure out how do you set up Xerces that's different than how XMLBeans does it.
 
Radu


From: Rama Mohan Rao Peruri [mailto:[EMAIL PROTECTED]
Sent: Sunday, October 01, 2006 5:42 PM
To: [email protected]
Subject: Xmlbeans and Xinclude

Hi

 

There are a few people who raised this topic but no solutions were given.  After some digging around, I found the following solution.  However when tested it fails at the xinclude line in the xml file.  Could somebody point me to my mistake?

 

 

ClassLoader cl = Thread.currentThread().getContextClassLoader();

URL url = "">

 

XMLReader reader = XMLReaderFactory.createXMLReader("org.apache.xerces.parsers.SAXParser");

reader.setFeature("http://apache.org/xml/features/xinclude", true);

                           

XmlOptions xopt = new XmlOptions();

xopt.setLoadUseXMLReader(reader);

IwfDocument idoc = IwfDocument.Factory.parse(url, xopt);  /* fails with a Xerces fatal error at the xinclude line in the xml file */

 

Best Regards                   

Rao (Peruri Rama Mohan Rao)

T&O-ES-Imaging & Workflow

Tel: 65- 6878 2071

Mobile: 65-9389 7141

 

CONFIDENTIAL NOTE: The information contained in this email is intended only for the use of the individual or entity named above and may contain information that is privileged, confidential and exempt from disclosure under applicable law. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete the mail. Thank you.

_______________________________________________________________________
Notice:  This email message, together with any attachments, may contain
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated
entities,  that may be confidential,  proprietary,  copyrighted  and/or
legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it.

Reply via email to