All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class xe.xe_ElementParser

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

public class xe_ElementParser
extends xe_Parser
Standard parser for an XML element, assuming the beginning (' [Content]


Constructor Index

 o xe_ElementParser()

Method Index

 o parse()
Parse the body of an XML element, putting the result in a newly-created element object.
 o parseAttributes(xg_Element)
Parse the attributes of an XML element, if it has any.
 o parseContent(xg_Element)
Parse the content of an XML element, adding it to the InputElement.
 o parseEndTag(xg_Element, xe_Token)
Parse the end tag, which we expect to be of the form , where Name is the name of the InputElement.

Constructors

 o xe_ElementParser
 public xe_ElementParser()

Methods

 o parse
 public xg_Node parse() throws IOException
Parse the body of an XML element, putting the result in a newly-created element object.

Returns:
The parsed element
Overrides:
parse in class xe_Parser
 o parseAttributes
 public boolean parseAttributes(xg_Element InputElement) throws IOException
Parse the attributes of an XML element, if it has any. Keep looking for 'Name = "Value"' attributes until we encounter '>' or '/>'.

Parameters:
InputElement - The element currently being parsed
Returns:
Whether the element is empty: true means it is
 o parseContent
 public void parseContent(xg_Element InputElement) throws IOException
Parse the content of an XML element, adding it to the InputElement. Treat everything up to the next ' Comment: Processing instruction: Element: ... PCData: Text ... and: End tag

Parameters:
InputElement - The element currently being parsed
 o parseEndTag
 public void parseEndTag(xg_Element InputElement,
                         xe_Token InputEndTagToken) throws IOException
Parse the end tag, which we expect to be of the form , where Name is the name of the InputElement. If the end tag is preceded by whitespace, it is assumed the whitespace has already been parsed.

Parameters:
InputElement - The element currently being parsed
InputEndTagToken - The body of the end tag - the

All Packages  Class Hierarchy  This Package  Previous  Next  Index