Wrox Programmer Forums
Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP 3 Classic ASP Active Server Pages 3.0 > Classic ASP XML
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #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
  #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)



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





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.