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.

Reply via email to