[jdom-interest] validate document without DOCTYPE declaration
Per Norrman
per.norrman at austers.se
Wed Jan 5 14:28:10 PST 2005
John C Cartwright wrote:
> Hello All,
>
> I'm trying to find a way to validate a document that does not include the DOCTYPE
> declaration. The URL for the DTD is known at runtime, but is not imbeded in the XML
> document.
>
> Can anyone tell me a way to do this?
Hi,
I think perhaps the easiest way is to manipulate the source document in
some way. Either through a merge operation on the filesystem level, or using
a custom InputStream that when necessary inserts the doctype declaration.
/pmn
More information about the jdom-interest
mailing list