How to Parse XML
In this article, we'll explain about XML parsing. We'll start by defining XML files, their format and how to navigate them for data extraction.
To select the following sibling (i.e. sibling that is below the current element) the +
and ~
combinators can be used.
The ~
selects any following general sibling:
The +
selects one following adjacent sibling (i.e. has to be right below it):
This knowledgebase is provided by Scrapfly — a web scraping API that allows you to scrape any website without getting blocked and implements a dozens of other web scraping conveniences. Check us out 👇