From the course: XML Essential Training

Unlock the full course today

Join today to access over 24,700 courses taught by industry experts.

Experimenting with XPath

Experimenting with XPath

- [Instructor] Okay, let's use what we've learned about XPath so far, and take it out for a spin on some sample XML data. I'm going to be using a free online tool for this called XPather, and you can find it at this link, xpather.com. It has a very simple user interface, right here at the top is where you enter your XPath expression you want to test. This text area here contains the XML code to test against. And the area to the right over here contains the result of the XPath expression. Tools like XPather give you a way to try out your XPath expressions in an interactive way, so that you can quickly test different expressions before you use them in your production code. So let's use the XML code that contains multiple business cards as our example. So I'm going to select all of this content and blow it away. And then over in VS Code, I'm going to select the code that's in businesscards.xml, so I'll select all this and copy it. And then go back over to Xpather, and I'll paste this in…

Contents