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.
-
SubsetToDTD()
- Create a new SubsetToDTD object.
-
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.
-
convertExternalSubset(InputSource, Hashtable)
- Convert the DTD in an external subset into a DTD object.
SubsetToDTD
public SubsetToDTD()
- Create a new SubsetToDTD object.
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.
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