File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes XML and Related Technologies and the fly likes xml Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "xml" Watch "xml" New topic
Author

xml

asha kiran
Greenhorn

Joined: Jan 11, 2001
Posts: 5
how to validate an xml document with a external dtd?
deekasha gunwant
Ranch Hand

Joined: May 06, 2000
Posts: 396
This post seems to belong to XML . so i'm moving this thread to
XML forum.
Brent Worden
Ranch Hand

Joined: Nov 26, 2001
Posts: 50
Add a DOCTYPE declaration at the beginning of your XML document:
<!DOCTYPE NAME_OF_ROOT_ELEMENT SYSTEM "someDtd.dtd">
See http://www.w3.org/TR/REC-xml#dt-doctype for a more thorough explaination.

------------------
Brent Worden
http://www.Brent.Worden.org/


Brent Worden
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: xml