470,833 Members | 1,987 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,833 developers. It's quick & easy.

how to append the child element in the xml document randomly at any place

Hello,

I have created the xml Document through the C# application using XmlTextWriter Class,
Which is as bellow,

<?xml version="1.0" encoding="utf-8" ?>
- <!-- Author HarshaL K. Dhote -->

- <Project Location="C:\WorkSpace">
- <Cars>
C:\WorkSpace\Cars
<HONDA>C:\WorkSpace\Cars\HONDA</HONDA>
</Cars>

<Bikes>C:\WorkSpace\Bikes</Bikes>
<Trucks>C:\WorkSpace\Trucks</Trucks>
<busses>C:\WorkSpace\busses</busses>

</Project>

Suppose Now I have to append child to the node Hond, how should I do this programatically,in C#
Feb 1 '08 #1
1 868
kenobewan
4,871 Expert 4TB
This post may help:
AppendChild adds empty namespace declaration to node
Feb 1 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

10 posts views Thread by Rich Wallace | last post: by
2 posts views Thread by Claudia Fong | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.