Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
R Web Scraping Quick Start Guide

You're reading from   R Web Scraping Quick Start Guide Techniques and tools to crawl and scrape data from websites

Arrow left icon
Product type Paperback
Published in Oct 2018
Publisher Packt
ISBN-13 9781789138733
Length 114 pages
Edition 1st Edition
Languages
Concepts
Arrow right icon
Author (1):
Arrow left icon
Olgun Aydin Olgun Aydin
Author Profile Icon Olgun Aydin
Olgun Aydin
Arrow right icon
View More author details
Toc

XML Path (XPath)

XPath is a syntax that provides functionality between XSL transformations and XPointer. It deals with parts of an XML document. It is used to manipulate strings, numbers, and Boolean expressions to handle the relevant parts of the XML document. XPath defines the path to a listener for each node type in an XML document. The primary syntactical structure in XPath is the expression. An expression is used to obtain an object that has one of the following four basic types:

  • Node-set
  • Boolean
  • Number
  • String

Key words in XPath are not written separately and they are written using lowercase characters. Each node in XML has a unique ID, a typed value, and a string value. Also, some nodes can even have a name. The value written to a node can be zero or atomic value strings. A sequence containing exactly one element is called a singleton. An item is identical to a singular...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime