Object
Xml
Set of functions to process XML
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionRun XPath query to a given XML string and return results as a listRun XPath query to a given file and return results as a liststatic String
Replace all elements which satisfy given XPath expression.static void
Replace all elements which satisfy given XPath expression.
-
Constructor Details
-
Xml
public Xml()
-
-
Method Details
-
query
Run XPath query to a given file and return results as a list -
query
Run XPath query to a given XML string and return results as a list -
replace
Replace all elements which satisfy given XPath expression.- Parameters:
xml
- input file where to perform the replacexpath
- XPath expressionvalue
- new value to replace with
-
replace
Replace all elements which satisfy given XPath expression.- Parameters:
xml
- input string where to perform the replacexpath
- XPath expressionvalue
- new value to replace with
-