Schema, Parsers, validators - Java
An XML schema is a description of a type of XML document, typically expressed in terms of constraints on the structure and content of documents of that type, above and beyond the basic syntax constraints imposed by XML itself. An XML schema provides a view of the document type at a relatively high level of abstraction.
From : en.wikipedia.org/wiki/XML_schema
DTD Parser
A Java DTD Parser
DTD parsers for Java seem to be pretty scarce. That's probably because DTD isn't valid XML. At some point, if/when XML Schema becomes widely accepted, no one will need DTD parsers anymore. Until then, you can use this library to parse a DTD.
To use the DTD parser, you just need to create a java.io.Reader for reading the DTD, then create an instance of com.wutka.dtd.DTDParser passing the Reader to the constructor, and call the parse method.
The parser returns a DTD object, which is similar to the Document object in the DOM model.
Tokenize.java, included in the source files, is an example program that reads a DTD and dumps the contents to System.out.
visit
DTD Parser
DTD Parser was visited : 74 times
Loading .....