This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes How to detect wrong DTD specified as system id? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "How to detect wrong DTD specified as system id?" Watch "How to detect wrong DTD specified as system id?" New topic
Author

How to detect wrong DTD specified as system id?

Vishwa Parishad
Greenhorn

Joined: May 02, 2005
Posts: 1
How can I determine if the XML Instance I am validating refers to a wrong DTD? That is the DOCTYPE contains a Public ID and system ID but the system ID refers to the wrong DTD
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: How to detect wrong DTD specified as system id?
 
Similar Threads
xml validation error:Caused by: nu.xom.ValidityException: Document is invalid: no grammar found
Any way to define a public id?
Parsing an XML document with an incorrect DTD
Resolve Public DTD to a local System id
ID and IDREF attributes in XML