Package com.avoka.fc.core.util.xml
Class XmlPropertyUtils
java.lang.Object
com.avoka.fc.core.util.xml.XmlPropertyUtils
Provides utility methods around schema seed XML manipulation.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Element
getElement
(Document document, String elementXPath) Return the schema XML element for the given XML document and XPath.static Element
getOrCreateElement
(Document document, String elementXPath) Resolve an element using an XPath.
-
Method Details
-
getElement
Return the schema XML element for the given XML document and XPath.- Parameters:
document
- the non-null XML documentelementXPath
- the non-null XPath containing the location of the element- Returns:
- the configured element for the given XML document and XPath
-
getOrCreateElement
Resolve an element using an XPath. If the element does not exist, it will be created.- Parameters:
document
- the non-null XML documentelementXPath
- the XPath locating the element- Returns:
- the XML element
-