473,382 Members | 1,651 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,382 software developers and data experts.

Insert XML into a XmlDocument object

I'm trying to inset XML into a XmlDocument that already has data in it. Does anyone have and c# examples (vb.net will work) or ideas on how to do this? Thx...sonny
Nov 12 '05 #1
2 5123
What do you mean ? If you want to append xml to an
existing xml, then you can use either XmlNode.InsertAfter
(), AppendChild() or some other functions from the XmlNode
class.

Sonu
MyBlog: http://weblogs.asp.net/sonukapoor/

-----Original Message-----
I'm trying to inset XML into a XmlDocument that already has data in it. Does anyone have and c# examples (vb.net
will work) or ideas on how to do this? Thx...sonny.

Nov 12 '05 #2
What do you mean ? If you want to append xml to an
existing xml, then you can use either XmlNode.InsertAfter
(), AppendChild() or some other functions from the XmlNode
class.

Sonu
MyBlog: http://weblogs.asp.net/sonukapoor/

-----Original Message-----
I'm trying to inset XML into a XmlDocument that already has data in it. Does anyone have and c# examples (vb.net
will work) or ideas on how to do this? Thx...sonny.

Nov 12 '05 #3

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

Similar topics

0
by: JC | last post by:
I'm converting a vb6 project to vb.net. I was able to insert a binary object into my XMLDOM using " Set oElement = xmlDoc.createElement("eDocument") oRoot.appendChild oElement oElement.dataType =...
4
by: Robert Rossney | last post by:
I'm trying to send and receive XmlDocument objects using the System.Messaging.dll functions. The code I've written follows, as best I can tell, the methodology used in the sample code for the...
1
by: Chris Fink | last post by:
I am receiving xml documents from a customer without a reference to a doctype. I know what the Doctype DTD should be need to insert the declaration as follows <?xml version="1.0"...
3
by: Markus | last post by:
Hi! I wanted to select a subset of nodes (list = selectNodes("parent/child") from a XmlDocument, then remove all (parentNode.removeAll();) child-nodes and insert the previous selected nodes...
2
by: John Smith | last post by:
I'm writing webervice client using .Net 2.0. I have this class: public class MyWebService : SoapHttpClientProtocol { public XmlDocument validate(string url, XmlDocument xmlDocument) {...
7
by: S Wheeler | last post by:
Hi all - I need some help trying to insert / append a block of xml text into an xml document. This is for a reporting app and as new data is available, I must add it to the end of the document. It...
11
by: ericms | last post by:
Can anybody show me how to insert a CDATA section using XPathNavigator ? I have tried the follwing with no luck: XmlDocument docNav = new XmlDocument(); docNav.LoadXml(xmlString);...
3
by: dotnetnoob | last post by:
let's say i have a xml file <root> <stuff id='1'> <stuff1> </stuff1> </stuff> </root> how do i insert new <stuff2>element and atrribute after stuff1
7
by: E.F | last post by:
Hi everybody, I get lost trying to insert a node in my xml file with readfile, xpath, xpathnavigator, etc... 1/ my xml file looks like that : <PUPILL_CP_1> <YEAR_2006> <OCTOBRE...
7
by: anu b | last post by:
Hi I need to use Clr trigger for insert command My code is as below I am using SQL server 2005 and VS 2008.... but after running this code i didnt get the result as i expexted it shows the...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.