473,385 Members | 1,548 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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.IXMLDOMElement
Dim nlItems As MSXML2.IXMLDOMNodeList
Dim tmpNode As MSXML2.IXMLDOMNode
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 ?

Next

Aug 2 '06 #1
2 2418
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.
Aug 2 '06 #2
ok thanks

Aug 3 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Miguel J. Jiménez | last post by:
Hi, I have the following node: <node> Some text here with lots of inside it... </node> and I would like it to transfrom it using XSLT to the following: Some text<br/> here with</br> lots...
7
by: Yngve | last post by:
Hi! I am trying to make two pointers at instances of the same class wich is beeing defined. But i get the following error from the compiler (MVC7): -------------------- ...
8
by: Ryan Stewart | last post by:
Putting the following code in a page seems to make it go into an infinite loop unless you give it a very simple node to work with. Either that or it's very very slow. I'm somewhat new to this,...
5
by: Patient Guy | last post by:
In my reading of the Strict and Transitional DTD for HTML 4.0, the table row (TR) elements are contained within table section elements: THEAD, TFOOT, and TBODY. The table section elements are...
2
by: bissatch | last post by:
Hi, I am currently writing a simple PHP program that uses an XML file to output rows for a 'Whats New' page. Once written, I will only require updating the XML file and any pages that use the...
2
by: David Elliott | last post by:
I am creating a configuration class to read / write a standard configuration file. <?xml version="1.0" encoding="utf-8"?> <configuration> <appSettings> <add key="ConnectionString"...
1
by: Yossi | last post by:
Nice tool! I am looking for something that will do the reverse. I have a whole bunch of XPath statements and I need to use them to generate and populate an XML document. I have mapping file...
1
by: wishbone34 | last post by:
Below is a postfix eval. program i have made, it works fine, however my professor wants me to make a header file with the class, and I tried this class StackType { public: void...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.