pahbi Posted December 7, 2018 Share Posted December 7, 2018 If your like me, and want to make mods, but are useless with xml and xpath, this online tool can help unravel xpaths. https://codebeautify.org/Xpath-Tester You can paste an xml file (items.xml for example) into the webpage, then experiment with different xpath expressions until you get to the value you are looking for. - P Link to comment Share on other sites More sharing options...
Alphado-Jaki Posted December 8, 2018 Share Posted December 8, 2018 Good info. Link to comment Share on other sites More sharing options...
sphereii Posted December 8, 2018 Share Posted December 8, 2018 I use this website as well, so I recommend it. One thing I do want to point out is that all these onine generators love to use index values in their xpath: xpath="/items/item[4]" This points to the 4th item, regardless of what it is. If something shifts the items, then the xpath is broken. Always review these xpath and remove the index values where you can, and add in [@name=''] to make it more precise. Link to comment Share on other sites More sharing options...
Sinz Posted December 15, 2018 Share Posted December 15, 2018 I can't get it to work? Edit: Nevermind, I worked it out Link to comment Share on other sites More sharing options...
JCA Posted January 6, 2019 Share Posted January 6, 2019 If your like me, and want to make mods, but are useless with xml and xpath, this online tool can help unravel xpaths. https://codebeautify.org/Xpath-Tester You can paste an xml file (items.xml for example) into the webpage, then experiment with different xpath expressions until you get to the value you are looking for. - P Hi, i´m a bit lost with your tool. Tried this one, and it work well for me https://xmltoolbox.appspot.com/xpath_generator.html Link to comment Share on other sites More sharing options...
cyr1l Posted November 27, 2019 Share Posted November 27, 2019 Hi, A simple online tool to test and generate XPath: https://extendsclass.com/xpath-tester.html You can double-click on an element or attribute to generate an XPath expression. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.