takuto_sugisaki's avatar
takuto_sugisaki
New Member
9 years ago
Status:
Needs Votes

xpath

I want to use "xpath" to extract data from xml. or to define element I want in web query.

5 Comments

  • 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(, ), where each node would be a record from the XML.Document table, but with [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?
  • Hear hear, navigating the trees can be very difficult; an option to use the xpath would be very helpful.
  • Web.Content fails in some cases where many nested tables are found containing ultimate information to extract. XPath will be handy to query the exact path of Table

Recent ideas