net.n3.nanoxml
public class StdXMLParser extends Object implements IXMLParser
Version: $Name: RELEASE_2_2_1 $, $Revision: 1.5 $
| Constructor Summary | |
|---|---|
| StdXMLParser()
Creates a new parser. | |
| Method Summary | |
|---|---|
| protected void | finalize()
Cleans up the object when it's destroyed. |
| IXMLBuilder | getBuilder()
Returns the builder which creates the logical structure of the XML data.
|
| IXMLReader | getReader()
Returns the reader from which the parser retrieves its data.
|
| IXMLEntityResolver | getResolver()
Returns the entity resolver.
|
| IXMLValidator | getValidator()
Returns the validator that validates the XML data.
|
| Object | parse()
Parses the data and lets the builder create the logical data structure.
|
| protected void | processAttribute(Vector attrNames, Vector attrValues, Vector attrTypes)
Processes an attribute of an element.
|
| protected void | processCDATA()
Processes a CDATA section.
|
| protected void | processDocType()
Processes a document type declaration.
|
| protected void | processElement(String defaultNamespace, Properties namespaces)
Processes a regular element.
|
| protected void | processPI()
Processes a "processing instruction".
|
| protected void | processSpecialTag(boolean allowCDATA)
Processes a tag that starts with a bang (<! |
| protected void | scanData()
Scans the XML data for elements.
|
| protected void | scanSomeTag(boolean allowCDATA, String defaultNamespace, Properties namespaces)
Scans an XML tag.
|
| void | setBuilder(IXMLBuilder builder)
Sets the builder which creates the logical structure of the XML data.
|
| void | setReader(IXMLReader reader)
Sets the reader from which the parser retrieves its data.
|
| void | setResolver(IXMLEntityResolver resolver)
Sets the entity resolver.
|
| void | setValidator(IXMLValidator validator)
Sets the validator that validates the XML data.
|
Returns: the builder
Returns: the reader
Returns: the non-null resolver
Returns: the validator
Returns: the logical structure built by the builder
Throws: net.n3.nanoxml.XMLException if an error occurred reading or parsing the data
Parameters: attrNames contains the names of the attributes. attrValues contains the values of the attributes. attrTypes contains the types of the attributes.
Throws: java.lang.Exception if something went wrong
Throws: java.lang.Exception if something went wrong
Throws: java.lang.Exception if an error occurred reading or parsing the data
Parameters: defaultNamespace the default namespace URI (or null) namespaces list of defined namespaces
Throws: java.lang.Exception if something went wrong
Throws: java.lang.Exception if something went wrong
Parameters: allowCDATA true if CDATA sections are allowed at this point
Throws: java.lang.Exception if something went wrong
Throws: java.lang.Exception if something went wrong
Parameters: allowCDATA true if CDATA sections are allowed at this point defaultNamespace the default namespace URI (or null) namespaces list of defined namespaces
Throws: java.lang.Exception if something went wrong
Parameters: builder the non-null builder
Parameters: reader the reader
Parameters: resolver the non-null resolver
Parameters: validator the non-null validator