public class BasicXmlDocument
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
(package private) class |
BasicXmlDocument.BasicXmlDocumentEntityResolver |
(package private) class |
BasicXmlDocument.BasicXMLDocumentErrorHandler |
| Modifier and Type | Field and Description |
|---|---|
private boolean |
accessible |
private javax.xml.parsers.DocumentBuilder |
db |
private javax.xml.parsers.DocumentBuilderFactory |
dbf |
private org.w3c.dom.Document |
document |
protected static org.apache.commons.logging.Log |
log
the log
|
private java.lang.String |
resolvePath |
| 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() |
private void |
initClass() |
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) |
protected static org.apache.commons.logging.Log log
private org.w3c.dom.Document document
private boolean accessible
private javax.xml.parsers.DocumentBuilderFactory dbf
private javax.xml.parsers.DocumentBuilder db
private java.lang.String resolvePath
public BasicXmlDocument()
throws java.lang.Exception
java.lang.Exception - an unexpected Exception exceptionprivate void initClass()
throws java.lang.Exception
java.lang.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.