how to creating new node inside a xml node

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Geagleeye

    how to creating new node inside a xml node

    Hi...

    how do i create a new xmlnode inside a node ...
    i have folowing code :

    Dim tmpElement As MSXML2.IXMLDOME lement
    Dim nlItems As MSXML2.IXMLDOMN odeList
    Dim tmpNode As MSXML2.IXMLDOMN ode


    Set nlItems = axResponse.resp onseXML.selectN odes("//item/data")
    For Each tmpNode In nlItems
    Set tmpElement = tmpNode

    'is it possible to wrtite som thing here to create a new node ?



    Next

  • Bob Barrows [MVP]

    #2
    Re: how to creating new node inside a xml node

    Geagleeye wrote:
    Hi...
    >
    how do i create a new xmlnode inside a node ...
    i have folowing code :
    >
    Dim tmpElement As MSXML2.IXMLDOME lement
    Dim nlItems As MSXML2.IXMLDOMN odeList
    Dim tmpNode As MSXML2.IXMLDOMN ode
    It appears that you are posting in the wrong place. This is VB code, not
    vbscript which does not support the "As ... " modifier in Dim
    statements. VB cannot be used in ASP pages. In the future you will get
    more focussed assistance by posting to a Visual Basic group such as
    microsoft.publi c.vb.general.di scussion
    >
    >
    Set nlItems = axResponse.resp onseXML.selectN odes("//item/data")
    For Each tmpNode In nlItems
    Set tmpElement = tmpNode
    >
    'is it possible to wrtite som thing here to create a new node ?
    >
    >
    >
    Where do you wish to create it? In VB, you would create a new node by:

    Set tmpNode = New MSXML2.IXMLDOMN ode

    If you were dealing with a domdocument, you could use the domdocument's
    CreateElement method and then use the AppendChild method to add your
    node to the document.

    --
    Microsoft MVP -- ASP/ASP.NET
    Please reply to the newsgroup. The email account listed in my From
    header is my spam trap, so I don't check it very often. You will get a
    quicker response by posting to the newsgroup.


    Comment

    • Geagleeye

      #3
      Re: how to creating new node inside a xml node

      ok thanks

      Comment

      Working...