PC Review


Reply
Thread Tools Rate Thread

Creation of XML

 
 
=?Utf-8?B?SmVzcGVy?=
Guest
Posts: n/a
 
      11th Feb 2005
Hi,

I would like to insert a child xml element under its parent node in a
XmlDocument. I can't figure out how to do this. Is XmlWriter the only option
here.

brgds Jesper.
 
Reply With Quote
 
 
 
 
Joakim Karlsson
Guest
Posts: n/a
 
      11th Feb 2005
parentNode.AppendChild(childNode);

Regards,
Joakim

Jesper wrote:
> Hi,
>
> I would like to insert a child xml element under its parent node in a
> XmlDocument. I can't figure out how to do this. Is XmlWriter the only option
> here.
>
> brgds Jesper.

 
Reply With Quote
 
Hans Kesting
Guest
Posts: n/a
 
      11th Feb 2005
Jesper wrote:
> Hi,
>
> I would like to insert a child xml element under its parent node in a
> XmlDocument. I can't figure out how to do this. Is XmlWriter the only option
> here.
>
> brgds Jesper.


On the XmlDocument there is a CreateNode method. Use this to create an
XmlNode that you can insert somewhere in the tree. You can use
AppendChild, InsertBefore or InsertAfter on some XmlNode in this
document to add your newly created node.


--
Hans Kesting
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Differentiate between drag & drop email task creation and normal task creation Mohit Microsoft Outlook Program Addins 1 18th Apr 2007 05:54 AM
email stat creation or html creation??? lafnsu Freeware 0 20th Jan 2005 09:44 PM
AT job creation Adrian Marsh (NNTP) Microsoft Windows 2000 Deployment 4 9th Oct 2004 10:03 AM
.WAV creation =?Utf-8?B?TmlnZWw=?= Windows XP Music 2 14th May 2004 09:11 PM
Form creation exception error; swapping delaying object creation? Fiona McBride Microsoft Dot NET 0 20th Apr 2004 09:58 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:57 PM.