|
Diamond Control Suite 3.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdiamondedge.util.XmlDom
public class XmlDom
Nested Class Summary | |
---|---|
static class |
XmlDom.ParseError
|
Constructor Summary | |
---|---|
XmlDom()
|
Method Summary | |
---|---|
Document |
getDocument()
|
XmlDom.ParseError |
getParseError()
|
static String |
getText(Node node)
returns the text associated with the node. |
String |
getUrl()
get the URL for the loaded XML document |
boolean |
isPreservingWhiteSpace()
returns whether should remove whitespace Text nodes when parsing |
boolean |
isValidating()
validate XML when parsing |
boolean |
load(File file)
load document from the specified XML file |
boolean |
load(String fileName)
load document from the specified XML file name |
boolean |
loadXML(String xmlData)
load the XML document from a string |
static void |
removeWhiteSpaceNodes(Node node)
|
void |
save(String desination)
save the document to a specified desination |
void |
setPreservingWhiteSpace(boolean preserveWhiteSpace)
set option whether should remove whitespace Text nodes when parsing |
static void |
setText(Node node,
String text)
set the text associated with the node. |
void |
setValidating(boolean validateOnParse)
validate XML when parsing |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XmlDom()
Method Detail |
---|
public Document getDocument() throws Exception
Exception
public String getUrl()
public boolean isPreservingWhiteSpace()
public void setPreservingWhiteSpace(boolean preserveWhiteSpace)
public boolean isValidating()
public void setValidating(boolean validateOnParse)
public boolean load(String fileName) throws Exception
Exception
public boolean load(File file)
public boolean loadXML(String xmlData)
public XmlDom.ParseError getParseError()
public void save(String desination) throws Exception
Exception
public static String getText(Node node)
public static void setText(Node node, String text)
public static void removeWhiteSpaceNodes(Node node)
|
Diamond Control Suite 3.0 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |