Hi Cor,
Thanks Cor
As u have mentioned i have placed the msg on Xml group and no reply till
date.
Other than someone asking me to check in archives.
I have a example given by Raju, but that does read and write a XML file but
creates a new note called <NEWDATASET> above the current RootDocument Node.
Which i don't i want the existing Schema to remain as it is.
Thanks
I can give u the Example given try it Out.
XML READ N WRITE.,
'Sample code in VB.NET
Dim ds As DataSet
ds = New DataSet
ds.ReadXmlSchema(Server.MapPath("XmlFile1.xsd"))
ds.ReadXml(Server.MapPath("XmlFile1.xml"))
Dim dv As DataView = New DataView(ds.Tables("Order"))
Dim dr As DataRowView = dv.AddNew()
dr("orderID") = "3"
dr("customerID") = "3"
dr.EndEdit()
ds.AcceptChanges()
ds.WriteXml(Server.MapPath("XmlFile1.xml"))
This does add new node.
Check it out.
Thanks
aRvind.
"Cor" <no*@non.com> wrote in message
news:3f***********************@reader21.wxs.nl...
Hi Jeremy, i like to read an existing xml file which has a schema defined to it,
and then write or add data to the existing xml file using vb.net/c#.
Maybe it is clever to read the full question before you send such an
answer.
The question is I think a full example in vb.net language code for
handling a XML file as a dataset or whatever without writing it back as a stream.
In my opinion that is not posible but I was waiting if someone could give
a better answer than me.
And because of an earlier help I could give to Arvin this morning and the
way he did give response to me, he probably knows that already and is
searching if there is something more sophisticated method.
He did has placed the same question at 13:00 GMT in the xml.dotnet. group
Cor