Package fr.enedis.chutney.action.common
Class XmlUtils
java.lang.Object
fr.enedis.chutney.action.common.XmlUtils
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic org.jdom2.xpath.XPathExpression<Object> compileXPath(String xpath) static org.jdom2.xpath.XPathExpression<Object> compileXPath(String xpath, Map<String, String> nsPrefixes) static org.jdom2.input.SAXBuilderstatic org.jdom2.DocumenttoDocument(String documentAsString)
-
Constructor Details
-
XmlUtils
public XmlUtils()
-
-
Method Details
-
toDocument
public static org.jdom2.Document toDocument(String documentAsString) throws XmlUtils.InvalidXmlDocumentException -
compileXPath
public static org.jdom2.xpath.XPathExpression<Object> compileXPath(String xpath) throws XmlUtils.InvalidXPathException - Throws:
XmlUtils.InvalidXPathException
-
compileXPath
public static org.jdom2.xpath.XPathExpression<Object> compileXPath(String xpath, Map<String, String> nsPrefixes) throws XmlUtils.InvalidXPathException- Throws:
XmlUtils.InvalidXPathException
-
saxBuilder
public static org.jdom2.input.SAXBuilder saxBuilder()
-