org.cyberneko.dtd.parsers.SAXParser Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of nekodtd Show documentation
Show all versions of nekodtd Show documentation
NekoDTD is a configuration that parses Document Type Definition (DTD) files and converts the information into an XML document. This representation can then be processed using standard XML processors and applications to perform grammar analysis, convert the DTD into other grammar formats, etc. For example, using an XSLT stylesheet, the XML representation of the DTD can be converted to an equivalent XML Schema or Relax NG grammar. The NekoDTD parser configuration is written using the Xerces Native Interface (XNI) that is the foundation of the Xerces2 implementation. This enables you to use NekoDTD with existing XNI tools without modification or rewriting code.
The newest version!
/*
* (C) Copyright 2002-2003, Andy Clark. All rights reserved.
*
* This file is distributed under an Apache style license. Please
* refer to the LICENSE file for specific details.
*/
package org.cyberneko.dtd.parsers;
import org.apache.xerces.parsers.AbstractSAXParser;
import org.cyberneko.dtd.DTDConfiguration;
/**
* A SAX parser for DTD documents.
*
* @author Andy Clark
*
* @version $Id$
*/
public class SAXParser
extends AbstractSAXParser {
//
// Constructors
//
/** Default constructor. */
public SAXParser() {
super(new DTDConfiguration());
} // ()
} // class SAXParser