p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Classic ASP XML (http://p2p.wrox.com/forumdisplay.php?f=69)
-   -   How to insert a New node into the XML Document VB (http://p2p.wrox.com/showthread.php?t=51932)

jabrouni1 December 26th, 2006 03:27 AM

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

kiasemoto January 26th, 2007 06:11 AM

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)



All times are GMT -4. The time now is 07:27 PM.

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