Package com.chutneytesting.action.common
Class XmlUtils
- java.lang.Object
-
- com.chutneytesting.action.common.XmlUtils
-
public class XmlUtils extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classXmlUtils.InvalidXmlDocumentExceptionstatic classXmlUtils.InvalidXPathException
-
Constructor Summary
Constructors Constructor Description XmlUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static 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.SAXBuildersaxBuilder()static org.jdom2.DocumenttoDocument(String documentAsString)
-
-
-
Method Detail
-
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()
-
-