Microsoft SDK for Java

DTD Class Methods

The DTD class contains the following methods:

addLoadedNameSpace adds a specified URL to the list of loaded namespaces.
addNameSpace adds a name pair (long name, short name) to the name space hashtable.
clear resets the DTD to its initial state.
elementDeclarations retrieves an object for enumerating the element declarations.
entityDeclarations retrieves an enumeration for enumerating the entities.
findElementDecl finds an element declaration for the given tag name.
findEntity finds a named entity in the DTD.
findLoadedNameSpace determines whether the specified URL is already a loaded namespace so that the caller can decide not to load it again.
findLongNameSpace retrieves the long name of a specified namespace.
findNotation retrieves the named XML notation in the DTD.
findShortNameSpace retrieves the short name of a specified namespace.
getDocType retrieves the name specified in the DOCTYPE tag.
getSchema converts everything stored in the DTD to the schema.
isReservedNameSpace determines if the given namespace is reserved.
notationDeclarations retrieves an enumeration for enumerating the notations.
save saves the DTD information to the given XML output stream.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.