Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP XML
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Classic ASP XML Using ASP 3 and XML. See also the XML category for more XML discussions not relating to ASP. NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP XML section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old December 26th, 2006, 03:27 AM
Registered User
 
Join Date: Jul 2006
Location: chennai, Tamil nadu, India.
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to insert a New node into the XML Document VB

Hi,
I need to insert a node after </C> as depicted below. Any info on how this can be done would be of great help.I need to do this in VB COM and not in .NET.
<a>
   <B>
       <C>
          <1></1>
          <2></2>
          <3></3>
          <4> </4>
  <D></D>
      </C>
          need to insert new node here(for eg : <servicetype type=""\>)
   </B>
</a>



Defeat is not when you fall down,But,when you refuse to get up
Reply With Quote
  #2 (permalink)  
Old January 26th, 2007, 06:11 AM
Registered User
 
Join Date: Jan 2007
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

maybe you can try to use this :
g_objxml is xml document object
set newNode = g_objXml.createElement("1")
g_objxml.selectSingleNode("a/b/c").appendChlid(newNode)

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Err,This document already has DocumentElement node ismailc XSLT 5 December 24th, 2007 12:40 PM
how to append child node after an node in XML + C# vishnu108mishra XML 5 November 13th, 2007 05:30 AM
To remove a XML node in VB.Net jkusmanto XML 4 May 23rd, 2006 09:18 AM
Urgent Help:Deleting a node in xml using vb : Milan XML 6 November 6th, 2004 03:28 AM
document node order vs sort node order. ladyslipper98201 XSLT 2 June 5th, 2003 11:06 AM



All times are GMT -4. The time now is 04:29 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.