Geagleeye wrote:
Hi...
how do i create a new xmlnode inside a node ...
i have folowing code :
Dim tmpElement As MSXML2.IXMLDOMElement
Dim nlItems As MSXML2.IXMLDOMNodeList
Dim tmpNode As MSXML2.IXMLDOMNode
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.public.vb.general.discussion
>
Set nlItems = axResponse.responseXML.selectNodes("//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.IXMLDOMNode
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.