[jdom-interest] Should this be parsable?
philip.nelson at omniresources.com
philip.nelson at omniresources.com
Sun Apr 29 18:43:50 PDT 2001
No, it means it couldn't find the dtd ;-)
Even if you don't validate, the parser must read the dtd because there are
other things besides element and attribute declarations that could be there.
> -----Original Message-----
> From: Robbins, Malcolm [mailto:Malcolm.Robbins at compaq.com]
> Sent: Sunday, April 29, 2001 4:33 PM
> To: 'jdom-interest at jdom.org'
> Subject: [jdom-interest] Should this be parsable?
>
>
> Hi,
>
> rephrasing my question fo a few days ago should the following XML be
> parsable, if not validitable if the DTD cannot be found?
>
> <?xml version="1.0" encoding="UTF-8"?>
> <!DOCTYPE document SYSTEM "averyunlikelyfilename.dtd">
> <document> Not alot here </document>
>
> When I try to parse this (non validated) with the standard JDOM parser
> (Xerces) I get an error that the DTD cannot be found. Is this correct
> behaviour? Does that mean the above document is not well-formed?
>
> If it is not correct parser behaviour does anyone know of a
> parser that will
> accept the above?
>
> regards
>
> --malcolm
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/yo
uraddr at yourhost.com
More information about the jdom-interest
mailing list