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 join text in XPath the concat()
function can be used. This is useful when parsing HTML for data values that are distributed through multiple elements or attributes.
See this interactive example:
Note that concat()
only works with strings so it'll automatically try convert elements to their text()
values.