Package com.persequor.xml
Class XmlNode
java.lang.Object
com.persequor.xml.XmlNode
- Direct Known Subclasses:
NullXmlNode
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAttribute
(String name, String value) addChildNode
(Namespace namespace, String name) addChildNode
(Namespace namespace, String name, boolean forceQualified) addChildNode
(String name) ensureChildExists
(String name, boolean forceQualified) getAttribute
(String name) getName()
boolean
void
remove()
void
setTextContent
(String content) xpathSingle
(String xpath) xpathSingleOptional
(String xpath)
-
Constructor Details
-
XmlNode
-
-
Method Details
-
getChildren
-
xpath
- Throws:
XPathExpressionException
-
ensureChildExists
public XmlNode ensureChildExists(String name, boolean forceQualified) throws XPathExpressionException - Throws:
XPathExpressionException
-
addChildNode
-
addChildNode
-
addChildNode
-
xpathSingleOptional
- Throws:
XPathExpressionException
-
xpathSingle
- Throws:
XPathExpressionException
-
remove
public void remove() -
getLocalName
-
getName
-
getPrefix
-
getNamespace
-
getTextContent
-
setTextContent
-
isElement
public boolean isElement() -
addAttribute
-
getAttribute
-
getAttributes
-