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

Give coding for Implementing a Fixed GridView Header in ASP.NET?

1 Answers  


how to convert Dataset to Object Array or list in c# .net

4 Answers  


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

2 Answers  


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

1 Answers  


Coding for .NET Delegates?

0 Answers  






Common UI for Multiple web applications. Suppose there are 35 websites using same third party controls.These 3rd party controls are made together that all 35 websites can use these controls.If we put all 3rd party controls and use its dll in 35 websites,only class files will be accessable. But I want to use CSS,images also in all 35 websites. how I can design the N-tier solution for this project.

0 Answers   TCS,


Data Reader Vs DataSet

5 Answers   TCS,


hold checkbox values

4 Answers  


how to track links visited in google using iframes

0 Answers  


How to add checkbox to datagrid?

5 Answers  


ArrayList declaration in .net

0 Answers  


Coding for Synchronizing Cache Access in ASP.NET?

0 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)