Current location: Hot Scripts Forums » Programming Languages » Visual Basic » Excel to XML converstion in Visual Basic 6.0


Excel to XML converstion in Visual Basic 6.0

Reply
  #1 (permalink)  
Old 04-20-11, 02:32 PM
mailtoroop mailtoroop is offline
New Member
 
Join Date: Apr 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Excel to XML converstion in Visual Basic 6.0

I have the following data into excel sheet.
----------------------
A B
1 India MP
2 India UP
3 USA CT
4 USA CA
---------------------------

I want to genrate following xml out of this excel.

<?xml version='1.0' encoding='Unicode'?>
<Tree>
<value>Tree</value>
<Childrens>
<A1>
<value>India</value>
<Childrens>
<B1>
<value>MP</value>
<Childrens></Childrens>
</B1>
<B2>
<value>UP</value>
<Childrens> </Childrens>
</B2>
</Childrens>
/A1>
<A3>
<value>USA</value>
<Childrens>
<B3>
<value>CT</value>
<Childrens></Childrens>
</B3>
<B4>
<value>CA</value>
<Childrens></Childrens>
</B4>
</Childrens>
</A3>
</Childrens>
</Tree>

Can someone please provide me the code written in visual basic 6.0?
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How do i create a visual basic code on excel 2003 that moves data? Anna Hussie Visual Basic 0 04-11-11 11:30 PM
visual basic with excel eanthmue Visual Basic 1 02-28-06 02:11 PM
visual basic with excel eanthmue Visual Basic 1 02-25-06 01:37 PM
visual basic with excel eanthmue Visual Basic 1 02-23-06 08:50 AM


All times are GMT -5. The time now is 01:19 PM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.