public class DocumentImpl extends Document
Modifier and Type | Field and Description |
---|---|
protected net.n3.nanoxml.IXMLParser |
parser
The parser to parse the XML stream
|
Constructor and Description |
---|
DocumentImpl()
Create a new instance of DocumentImpl.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
convertSymbols(java.lang.String xmlStream)
Can be some symbol clashes tht need to be corrected first.
|
Element |
getRootElement()
Get the root element of the document.
|
protected void |
initialise()
Initialise some values.
|
Element |
parse(java.io.InputStream xmlStream)
Parse the String-based xml stream and return the root element.
|
Element |
parse(java.lang.String xmlStream)
Parse the String-based xml stream and return the root element.
|
void |
setRootElement(Element theRootElement)
Set the root element value of the document.
|
public DocumentImpl() throws java.lang.Exception
java.lang.Exception
- any error.protected void initialise() throws java.lang.Exception
initialise
in class Document
java.lang.Exception
- any error.public Element parse(java.lang.String xmlStream) throws java.lang.Exception
public Element parse(java.io.InputStream xmlStream) throws java.lang.Exception
public void setRootElement(Element theRootElement)
setRootElement
in class Document
theRootElement
- the root element.public Element getRootElement()
getRootElement
in class Document
protected java.lang.String convertSymbols(java.lang.String xmlStream)
xmlStream
- the XML description in String format.