XPathEdit - Mass value changes in xml
Posted: Mon May 05, 2014 12:56 pm
Hello, i wrote this little tool to do mass value changes to xmls.
You open an xml document: You type in a XPath expression and click on "Select Batch Nodes" which selects elements or attributes: You type in a new value for the selected nodes and click "Set New Value" to update the nodes: Warning:
Saved documents have XML attributes undefined sorted, i can't change this.
Limitations:
The tool will only allow element and attribute nodes to be selected. XPath expression like /list/npc/race/text() would not select anything.
This is because i have not the knowledge yet about xml and all it's nodes a DOM tree represents and how to represent all the nodes in a tree.
Java 8 is required for this application to run.
On windows it should suffice to start the XPathEdit.jar file. If that does not work try the XPathEdit.bat file.
If that does not work also, edit the XPathEdit.bat file and set the JSE_8_PATH to the Java 8 installation bin path(with trailing slash).
Eg.: "C:\Program Files\Java\jre8\bin\" -> SET JSE_8_PATH=C:\Program Files\Java\jre8\bin\
You open an xml document: You type in a XPath expression and click on "Select Batch Nodes" which selects elements or attributes: You type in a new value for the selected nodes and click "Set New Value" to update the nodes: Warning:
Saved documents have XML attributes undefined sorted, i can't change this.
Limitations:
The tool will only allow element and attribute nodes to be selected. XPath expression like /list/npc/race/text() would not select anything.
This is because i have not the knowledge yet about xml and all it's nodes a DOM tree represents and how to represent all the nodes in a tree.
Java 8 is required for this application to run.
On windows it should suffice to start the XPathEdit.jar file. If that does not work try the XPathEdit.bat file.
If that does not work also, edit the XPathEdit.bat file and set the JSE_8_PATH to the Java 8 installation bin path(with trailing slash).
Eg.: "C:\Program Files\Java\jre8\bin\" -> SET JSE_8_PATH=C:\Program Files\Java\jre8\bin\