Code for a Simple Way to Write XML in .NET (XmlTextWriter)



Code for a Simple Way to Write XML in .NET (XmlTextWriter)..

Answer / mohanraja

This coding is to decrement the count value...

Dim writer As New XmlTextWriter("C:\windows\Test.xml", New
System.Text.UTF8Encoding)
writer.WriteStartDocument()
writer.WriteStartElement("Value", "")
writer.WriteStartElement("Countvalue")
writer.WriteStartElement("cntval", "")
writer.WriteString(value - 1)
writer.WriteEndElement()
writer.WriteEndElement()
writer.WriteEndElement()
writer.WriteEndDocument()
writer.Close()

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More ASP.NET Code Interview Questions

How we implement the paypal in my website and how we make a payment through Credit Card.

2 Answers  


how to upload a photo? i need to use it in a matrimonial applicaton...

1 Answers  


i have a gird with columns all are coming from database,this will bind in item templete in gridview as textboxex.and i have button below named Update.i want to update all the records in the grid,but if user change the value of one textbox,what is the easy way 2 do this

0 Answers   Crompton Greaves,


how to upload an excel in c# ASP.Net?

3 Answers  


Code for Creating a Form Using PlaceHolder Controls?

0 Answers   Arena, JSA,






Code for Getting Information About A File?

1 Answers  


Give coding for Exception Handling Techniques in ASP.NET?

3 Answers   Microsoft,


How to Create Scrollable Micro Windows?

2 Answers  


how to create a search bar which access data from various websites and retrieves the data

0 Answers  


How to add checkbox to datagrid?

5 Answers  


What is the code of Password Recovery or Forget your password? Plz tell in c # language.

0 Answers  


Code for Sending E-Mail with System.Web.Mail?

2 Answers  


Categories
  • ASP.NET Code Interview Questions ASP.NET Code (46)
  • VB.NET Code Interview Questions VB.NET Code (9)
  • C Sharp Code Interview Questions C Sharp Code (51)
  • ADO.NET Code Interview Questions ADO.NET Code (8)