![]() |
How to read xml file using VBA macro
I have an xml file (below is the the sample) - how do I read this XML file to
get "id", "name" and "division" values using VBA macro? Any sample code is really appreciated. Thanks! <CustomerDetails <cid id = "A123" <Details <Name = "John" Division = "xyz"/ <Name = "David" Division = "rts" / </Details </cid </CustomerDetails -- Aruna |
How to read xml file using VBA macro
Plenty of sample code out there. Eg:
http://msdn2.microsoft.com/en-us/lib...ffice.10).aspx Your XML doesn't look valid though. The child nodes of "Details" have no name, only two attributes "Name" and "Division". Tim "Aruna Akella" wrote in message ... I have an xml file (below is the the sample) - how do I read this XML file to get "id", "name" and "division" values using VBA macro? Any sample code is really appreciated. Thanks! <CustomerDetails <cid id = "A123" <Details <Name = "John" Division = "xyz"/ <Name = "David" Division = "rts" / </Details </cid </CustomerDetails -- Aruna |
All times are GMT +1. The time now is 11:30 AM. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com