473,473 Members | 1,864 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Add Child Node to multinode XML Document

I'm trying to add a chile node to a document that looks like the
following:

<Configuration>
<Main>
<oneONE </One>
<TwoTWO </Two>
</Main>
<Multiples>
<Entry>
<NameTEST </Name>
<Date DATE </Date>
<OtherOTHER </Other>
</Entry>
<Entry>
<Namexxxxx </Name>
<Date yyyyy </Date>
<Otherzzzzz </Other>
</Entry>
</Multiples>
</Configuration>
----------------------------------------------------------------------------

I need to add a new <Entryinto the <MultiplesNode. the problem I am
having is that when adding using the InnerXML and XMLTextWriter, I add
a new <Entry below the </Multiplesnode.

Any help is appreciated.

Oct 30 '06 #1
1 2079
fi*******@hotmail.com wrote:
| I'm trying to add a chile node to a document that looks like the

Have you considered using xpath queries [http://www.w3schools.com/xpath/] to
manipulate your xml nodes? These can be used in conjunction with the
System.Xml.XPath namespace. I've found the combination to be very powerful
and easy to use.

--
Christopher Ireland

"Getting married for sex is like buying a 747 for the free peanuts."
Jeff Foxworthy
Oct 30 '06 #2

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

Similar topics

0
by: CoolPint | last post by:
I am trying to write a generic heapsort (of course as a self-exercise) with Iterator interface: something like blow.... But I got into trouble finding out the Iterator to the Child node. If...
5
by: B-Dog | last post by:
I want to be able to detect if a user has selected a parent or child node in a treeview and depending on which is clicked act accordingly based on the tag. I can get the values but don't know if...
1
by: gplott | last post by:
I have an XML document that has multiple childe nodes like the one at the end of this message What syntax would I use with selectNodes to select all viewentry nodes that have an entrydata...
1
by: Rajarshi | last post by:
Hi, I'm using ElementTree for some RSS processing. The point where I face a problem is that within an <item></itemI need to add another child node (in addition to <linketc) which is a well-formed...
2
by: purnaprasanth | last post by:
Hi, While im inserting a child node at runtime toa xml document each time it display a dialog box Do you want to save or not to avoid that we have to chage any settings in web.config ...
1
by: Tedros.G | last post by:
Hi I have an attribute the appears in both the root node and child node for example, below the attribute VERSION appears in the rood node (PRODMSG ) and a child node (OPERATION ) ================...
0
by: romcab | last post by:
Hello expert, I would like to ask how can I add a parent node and child node simultaneously. I try this code; //create parent node XmlElement ^elem =...
1
by: ramjaspari | last post by:
Hi all, I want to add childnodes to a child node(ex:ch1) and adding one more child node to the ch1 node.. and it will keep on going.. Number of nodes is NOT pre-defined.... so...
20
omerbutt
by: omerbutt | last post by:
hi there i am making an application in which i have to populate columns that consist of some textfields and some input boxes the problem is at the mozilla's end, it creates a new node and appends the...
1
by: Subhankar Sahu | last post by:
Hi All, I have a requirement to split an incoming XML document based on a child node value. Here is snippet of my source XML. <Select_Groupid_Collection> <Select_Groupid_Output> ...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.