Quantcast
Channel: All Power Query posts
Viewing all articles
Browse latest Browse all 122266

Apply xPath or xQuery to XML files

$
0
0

Does anyone else need to get data from XML files in a more organized/flexible way?

I have a set of XML files that I'd like to use, but the hierarchy is a bit too complex to deal with easily.

It would be awesome if there were an xPath function! Something like ListOfNodes = XML.xPath(<contextNode>, <xPathStmt>), where each node would be a record from the XML.Document table, but with [Parent = <Parent>] metadata. Could work with web-sourced xml too.

I almost tried implementing a basic interpreter myself in M, but it's hard without Regular Expression (another feature we badly need) functions to parse anything more complex than "/bookstore/book".

Anyone else need this, or manage to build themselves a workaround?


Viewing all articles
Browse latest Browse all 122266

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>