Announcement

Collapse
No announcement yet.

[TOOLS]Online XPATH tester tool

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    [TOOLS]Online XPATH tester tool

    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
    Last edited by pahbi; 12-07-2018, 06:46 PM.

    #2
    Good info.

    Comment


      #3
      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:

      Code:
      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.

      Comment


        #4
        I can't get it to work?

        Edit:

        Nevermind, I worked it out
        Last edited by Sinz; 12-15-2018, 04:41 AM.

        Comment


          #5
          Originally posted by pahbi View Post
          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

          Comment


            #6
            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.

            Comment

            Working...
            X