EBOOK Learn XPath Fast A beginner-friendly, exercise-based course for people who want to use XPath i

Page 1

EBOOK Learn XPath

Fast

A beginnerfriendly, exercise-based course for people who want to use XPath in Selenium, SQL Server, XQuery or anywhere else by

Let me tell you a story.A year before this book came out, I had to query some XML in a SQL Server database. So I looked online and found a language called XPath. XPath was THE way to navigate XML documents. It was what SQL was to databases, what regex was to text. XPath would let me extract the data I needed, using one simple line of code. The only problem was, I couldnt get it to work.So I started reading about XPath online. I tried out XPath expressions, just to figure out how the language worked. I copied working code posted

online, ran it, and got back errors.In the end, I learned that SQL Server supported XPath 1.0. Id been trying to use features from version 2.0.Time passed. I forgot about XPath.Then I used a tool called Selenium to design automated website tests, and I ran into XPath again. This time, it was my only option for navigating to various parts of a web page. This time, it worked great. It navigated the Html perfectly, using a single-line expression each time.This was a great tool. I wanted to master it. The problem was, there is a lot more to XPath than there seems. Also, the information I found online was hard to learn from. Often it was incomplete. The more complete sources were written as technical references, not for learners to work through. Some of what I found was misleading, and, sometimes, it was just wrong.So, I experimented. I ran expressions. I read specifications. I read the specifications they cross-referenced. I took notes. In the end, I did it.And because Ive written a few IT books before, I recorded all of these notes and experiments in an e-book format.This is the result. It has everything I could think of to help someone master using XPath. It has practice exercises based on downloadable XML files, so you can learn to use XPath, not just read about it. It has answers to those exercises. It has primers on XML and XML namespaces, so you can brush up on those first.Its written as a course, so you can go from beginner, all the way to expert, as simply as possible.I hope you find it useful.

Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.