All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class de.tudarmstadt.ito.schemas.converters.SubsetToDTD

java.lang.Object
   |
   +----de.tudarmstadt.ito.schemas.converters.SubsetToDTD

public class SubsetToDTD
extends Object
Converts an external DTD or the DTD in an XML document into a DTD object.

Note that while SubsetToDTD checks for most syntactic errors in the DTD it does not check for all of them. Thus, results are undetermined if the DTD is not syntactically correct.

Version:
1.01
Author:
Ronald Bourret, Technical University of Darmstadt

Constructor Index

 o SubsetToDTD()
Create a new SubsetToDTD object.

Method Index

 o convertDocument(InputSource, Hashtable)
Convert the DTD in an XML document containing an internal subset, reference to an external subset, or both, into a DTD object.
 o convertExternalSubset(InputSource, Hashtable)
Convert the DTD in an external subset into a DTD object.

Constructors

 o SubsetToDTD
 public SubsetToDTD()
Create a new SubsetToDTD object.

Methods

 o convertDocument
 public DTD convertDocument(InputSource src,
                            Hashtable namespaceURIs) throws DTDException, MalformedURLException, IOException, EOFException
Convert the DTD in an XML document containing an internal subset, reference to an external subset, or both, into a DTD object.

Parameters:
src - A SAX InputSource for the XML document.
namespaceURIs - A Hashtable mapping prefixes used in the DTD to namespace URIs. May be null.
Returns:
The DTD object.
Throws: DTDException
Thrown if a DTD error is found.
Throws: EOFException
Thrown if EOF is reached prematurely.
Throws: MalformedURLException
Thrown if a system ID is malformed.
Throws: IOException
Thrown if an I/O error occurs.
 o convertExternalSubset
 public DTD convertExternalSubset(InputSource src,
                                  Hashtable namespaceURIs) throws DTDException, MalformedURLException, IOException, EOFException
Convert the DTD in an external subset into a DTD object.

Parameters:
src - A SAX InputSource for DTD (external subset).
namespaceURIs - A Hashtable mapping prefixes used in the DTD to namespace URIs. May be null.
Returns:
The DTD object.
Throws: DTDException
Thrown if a DTD error is found.
Throws: EOFException
Thrown if EOF is reached prematurely.
Throws: MalformedURLException
Thrown if a system ID is malformed.
Throws: IOException
Thrown if an I/O error occurs.

All Packages  Class Hierarchy  This Package  Previous  Next  Index