    All Packages  Class Hierarchy  This Package  Previous  Next  Index

# Class xe.xe_DtdParser

    java.lang.Object
       |
       +----xe.xe_Parser
               |
               +----xe.xe_DtdParser

public class xe_DtdParser
extends xe_Parser

Class xe_DtdParser - parser for the DTD of an XML document, assuming the beginning (' %Name;]* > Most of the individual components are parsed using their own parser classes, but

##

xe_DtdParser()

##

parse()
  Parse the body of a Document Type Definition, putting the result in a newly-created DTD object.
parseExternalID(xe_Token)
  Parse an external ID.
parseExternalSubset(xg_Dtd, xe_Token)
  Parse the external subset of the DTD, assuming its first token (SYSTEM or PUBLIC has already been parsed).
parseInternalSubset(xg_Dtd, xe_Token)
  Parse the internal subset of the DTD.
parseNotationDecl(xg_Dtd, xe_Token)
  Parse a notation declaration, assuming the opening "

  ##

  xe_DtdParser

       public xe_DtdParser()

  ##

  parse

       public xg_Node parse() throws IOException

    Parse the body of a Document Type Definition, putting the result in a newly-created DTD object.

    Returns:
      The parsed DTD
    Overrides:
      parse in class xe_Parser
  parseExternalSubset

       public xe_Token parseExternalSubset(xg_Dtd InputDtd,
                                           xe_Token InputStartToken) throws IOException

    Parse the external subset of the DTD, assuming its first token (SYSTEM or PUBLIC has already been parsed). It should have the form: SYSTEM "Url" | PUBLIC "Name" "Url" [NDATA Name]

    Parameters:
      InputDtd - The DTD currently being parsed
      InputStartToken - The first token of the external subset
    Returns:
      The next token after the external subset
  parseInternalSubset

       public xe_Token parseInternalSubset(xg_Dtd InputDtd,
                                           xe_Token InputStartToken) throws IOException

    Parse the internal subset of the DTD. It should be a matching set of brackets [ ... ] enclosing a list of declarations. The opening bracket is assumed to have been parsed already (and passed in as InputStartToken). The types of declarations allowed are: %Name;

    Parameters:
      InputDtd - The DTD currently being parsed
      InputStartToken - The first token of the external subset
    Returns:
      The next token after the internal subset
  parseNotationDecl

       public void parseNotationDecl(xg_Dtd InputDtd,
                                     xe_Token InputStartToken) throws IOException

    Parse a notation declaration, assuming the opening " =========>

    Parameters:
      InputDtd - The DTD currently being parsed
      InputStartToken - The first token of the external subset
  parseExternalID

       public xg_ExternalID parseExternalID(xe_Token InputStartToken) throws IOException

    Parse an external ID. It should have the form: SYSTEM "Url" or PUBLIC "Name" "Url"

    Parameters:
      InputStartToken - The first token of the external subset
    Returns:
      The external ID which has just been parsed

      All Packages  Class Hierarchy  This Package  Previous  Next  Index