net.n3.nanoxml
Interface IXMLParser
- StdXMLParser
public interface IXMLParser
IXMLParser is the core parser of NanoXML.
Version:
- Marc De Scheemaecker
getBuilder
public IXMLBuilder getBuilder()
Returns the builder which creates the logical structure of the XML data.
- the builder.
getReader
public IXMLReader getReader()
Returns the reader from which the parser retrieves its data.
- the reader.
getResolver
public IXMLEntityResolver getResolver()
Returns the entity resolver.
- the non-null resolver.
getValidator
public IXMLValidator getValidator()
Returns the validator that validates the XML data.
- the validator.
parse
public Object parse()
throws XMLException
Parses the data and lets the builder create the logical data structure.
The method returns the result of getResult of the builder. if an
error occurred while reading or parsing the data, the method may throw
an XMLException.
- the logical structure built by the builder.
XMLException
- if an error occurred reading or parsing the data
IXMLBuilder.getResult()
setBuilder
public void setBuilder(IXMLBuilder builder)
Sets the builder which creates the logical structure of the XML data.
builder
- the builder.
setReader
public void setReader(IXMLReader reader)
Sets the reader from which the parser retrieves its data.
reader
- the reader.
setResolver
public void setResolver(IXMLEntityResolver resolver)
Sets the entity resolver.
resolver
- the non-null resolver.
setValidator
public void setValidator(IXMLValidator validator)
Sets the validator that validates the XML data.
validator
- the validator.