Package org.codehaus.cargo.util
Class MissingXmlElementAppender
- java.lang.Object
-
- org.codehaus.cargo.util.MissingXmlElementAppender
-
public class MissingXmlElementAppender extends Object
This class detects missing nodes of a DOM document based on an XPath expression and appends the missing branch.
-
-
Constructor Summary
Constructors Constructor Description MissingXmlElementAppender(Document document, String xPathString)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Node
append()
Appends the missing nodes.Document
getDocument()
Getter
-
-
-
Method Detail
-
getDocument
public Document getDocument()
Getter- Returns:
- documnet given via the constructor
-
append
public Node append() throws XPathExpressionException
Appends the missing nodes.- Returns:
- the common node of document and XPath
- Throws:
XPathExpressionException
- if anything goes wrong
-
-