Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

SAX parser, handling <!DOCTYPE> elements

2 views
Skip to first unread message

Steve M

unread,
Jan 14, 2000, 3:00:00 AM1/14/00
to
I'm using SAX to parse XML documents of various types, including a custom
XML application and SOX. The SOX documents I'm trying to parse have
<!DOCTYPE> tags like this:

<!DOCTYPE schema SYSTEM
"urn:x-commerceone:document:com:commerceone:xdk:xml:schema.dtd$1.0">

But I'm getting a FileNotFoundException as the (sun) SAX parser tries to
load the file
"d:\urn:x-commerceone:document:com:commerceone:xdk:xml:schema.dtd$1.0". I
implemented the resolveEntity method, and the publicId is null, while the
systemId contains the string shown above.

So, my question is, how do I appropriately handle resolving of URN's?

Using the com.sun.xml.parser and the org.xml.sax classes.


0 new messages