ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Is there a way to find all the XPaths in an XML file? (https://www.excelbanter.com/excel-programming/346952-there-way-find-all-xpaths-xml-file.html)

JimR

Is there a way to find all the XPaths in an XML file?
 
I need to read an XML file and have Excel create a schema for that file (I
have this part working) then I need to link all the data from the XML file
into a spreadsheet. I can do this so long as I know the XPath to each
category of data but since the XML file is an unknown and Excel inferred the
schema, I don't know all the XPaths. I have found that I can get the schema
by accessing the XML Property of the XMLSchema Object but then I am writing a
routine to parse an XML string (the schema that was returned).
I am hoping for a feature that will give me all of the XPaths for an unknown
XML file. This information is very nicely displayed in the XML Source window,
I just need to access it.


All times are GMT +1. The time now is 12:06 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com