p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


Go Back   p2p.wrox.com Forums > XML > XML
I forgot my password Register Now
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
XML General XML discussions.

Welcome to the p2p.wrox.com Forums.

You are currently viewing the XML section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.

Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old October 2nd, 2009, 03:39 PM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2009
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Create XML in VB

Hi this is my first stab at XML. I am not sure if I should be posting this in a VB forum or hte XML forum. Either way,direct me.

I want to create the following XML output below in VB. I know I can use the the .WriteStartElement method and the WriteEndElement method. However it can get confusing in your VBA code.

I have provided an example which I can relate to refering to a VBA code hierachy. How would I program this in VB?


<xml version="1.0"encoding = "utf-8"standalone="yes">
<Code>
<Modtype name = "Regular">
<Declarations>
<Declaration name = "Top">
<Snippet name = "Unkown">
<LinesOfCode = "50"/>
</Snippet>
</Declaration>
</Declarations>
<Procedures>
<Procedure name = "Sub">
<Snippet name = "Sub Thing()">
<LinesOfCode = "100"/>
</Snippet>
<Snippet name = "Sub Other()">
<LinesOfCode = "200"/>
</Snippet>
</Procedure>
<Procedure name = "Function">
<Snippet name = "Function Thing()">
<LinesOfCode = "400"/>
</Snippet>
<Snippet name = "Function Other()">
<LinesOfCode = "500"/>
</Procedure>
<Procedure name = "Event">
<Snippet name = "ClickEvent()">
<LinesOfCode = "700"/>
<RangeVariables = "True"/>
</Snippet>
<Snippet name = "MouseOverEvent()">
<LinesOfCode = "800"/>
</Snippet>
</Procedure>
</Procedures>
</Modtype>
[FONT='Arial','sans-serif']</Code>
[/font]

Thanks

EM
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
  #2 (permalink)  
Old October 3rd, 2009, 02:51 AM
Friend of Wrox
Points: 1,882, Level: 17
Points: 1,882, Level: 17 Points: 1,882, Level: 17 Points: 1,882, Level: 17
Activity: 7%
Activity: 7% Activity: 7% Activity: 7%
 
Join Date: May 2004
Location: India
Posts: 563
Thanks: 0
Thanked 14 Times in 14 Posts
Default

Please check the following links:

Creating XML documents with the DOM in VB6
http://articles.techrepublic.com.com...1-1044759.html

Using the .NET Library and XML in VB6
http://www.codeproject.com/KB/vb-int...raryinVB6.aspx
__________________
Om Prakash Pant
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit!
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
VB.net, adding XML data to an existing XML file saikoboarder XML 11 April 17th, 2008 05:19 PM
Problem to create an xml file from two xml files saurabh_inblore XSLT 1 April 12th, 2006 03:58 AM
create xml file using c# kk_katepally General .NET 2 February 11th, 2005 02:59 AM
Create a XML ? Teon ASP.NET 1.0 and 1.1 Basics 1 September 30th, 2003 01:53 PM
XML to XML through an XSLT (VB.NET) dimondwoof XSLT 1 June 25th, 2003 01:07 PM



All times are GMT -4. The time now is 03:06 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
© 2008 Wiley Publishing, Inc