Package com.avoka.fc.core.util.xml
Class XmlPropertyUtils
- java.lang.Object
-
- com.avoka.fc.core.util.xml.XmlPropertyUtils
-
public final class XmlPropertyUtils extends Object
Provides utility methods around schema seed XML manipulation.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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 Detail
-
getElement
public static Element getElement(Document document, String elementXPath)
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
public static Element getOrCreateElement(Document document, String elementXPath)
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
-
-