Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,588
Default 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



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Opening macro file as read only Fred Smith Excel Programming 6 October 5th 06 05:08 AM
how to read dbf file using macro? musa.biralo Excel Programming 4 September 15th 06 08:16 PM
macro read xml file raisin Excel Programming 1 November 28th 05 03:09 PM
How to write a macro to open a file read-only? Mark Seger Excel Programming 20 June 5th 05 05:31 PM
Saving a file within a macro but only when it does not have a read only attribute Alex Excel Programming 2 September 16th 03 04:19 PM


All times are GMT +1. The time now is 08:22 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"