Re: SAXBuilder with EntityResolver, XML Schemas, DOCTYPE and namespaces
Paul Libbrecht <[email protected]>
| Newsgroups | gmane.comp.java.jdom.general |
|---|---|
| Message-ID | <[email protected]> |
Le 4 oct. 05 à 22:02, David Patterson a écrit : > had a problem trying to use the SAXBuilder to process an XML file > that uses namespaces, and has XML Schema validation and uses an > EntityResolver to locate the schema files. The XML file also has a > DOCTYPE declaration for an entity. (I mention all of these in case > one is known to cause problems.) > > I’ve solved the problem (perhaps not in the best way) but wanted to > bring it to your attention in case it is a known or unknown bug. have you tried without the entity-resolver ? Seems like a fancy resolver. > I tried using the build( File), build( InputStream) and build > ( InputSource), and all fail similarly. I have tested the correct > solution on the File and InputStream versions and they both work > the same. Don't use build(inputStream). build(File) should work. build(InputSource) will only be able to resolve relative paths when the input-source is set with a system id. Just a few hints. paul _______________________________________________ To control your jdom-interest membership: http://www.jdom.org/mailman/options/jdom-interest/[email protected]
smime.p7s
(application/pkcs7-signature, 2.2 KB) - not displayed