public class BasicXmlDocument
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected static org.apache.commons.logging.Log |
log
the log
|
Constructor and Description |
---|
BasicXmlDocument() |
Modifier and Type | Method and Description |
---|---|
org.w3c.dom.Element |
createElement(java.lang.String name) |
java.lang.String |
dump() |
java.lang.String |
dump(boolean collapse) |
org.w3c.dom.Document |
getDocument() |
org.w3c.dom.Element |
getDocumentElement() |
boolean |
IsAccessible() |
boolean |
parse(java.io.InputStream in) |
boolean |
parseBytes(byte[] xmlBytes) |
boolean |
parseString(java.lang.String xmlValue) |
boolean |
removeChildren(org.w3c.dom.Node ref) |
void |
setResolvePath(java.lang.String p) |
public BasicXmlDocument() throws java.lang.Exception
java.lang.Exception
- an unexpected Exception exceptionpublic void setResolvePath(java.lang.String p)
p
- the ppublic boolean IsAccessible()
public org.w3c.dom.Document getDocument()
public org.w3c.dom.Element getDocumentElement()
public org.w3c.dom.Element createElement(java.lang.String name)
name
- the namepublic boolean removeChildren(org.w3c.dom.Node ref)
ref
- the refpublic boolean parse(java.io.InputStream in) throws java.lang.Exception
in
- the injava.lang.Exception
- an unexpected Exception exceptionpublic boolean parseString(java.lang.String xmlValue) throws java.lang.Exception
xmlValue
- the xmlValuejava.lang.Exception
- an unexpected Exception exceptionpublic boolean parseBytes(byte[] xmlBytes) throws java.lang.Exception
xmlBytes
- the xmlBytesjava.lang.Exception
- an unexpected Exception exceptionpublic java.lang.String dump()
public java.lang.String dump(boolean collapse)
collapse
- the collapseCopyright © 2011 DS Data Systems UK Ltd.