The text of this article is not in this database — only its details are. Read it on the old site: Create XML in C#
7 Comments
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
The text of this article is not in this database — only its details are. Read it on the old site: Create XML in C#
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment.
sasidhar durbhakulaPosted Jul 16, 2019, 11:04 AM
I don't think its working
Vincent PaukgyiPosted Jul 14, 2018, 6:16 AM
How to produce datetime attribute like "<StartDate xsi:type=xsd:dateTime>datevalue</StartDate> "?
Ketan ShindePosted Jan 30, 2018, 11:49 PM
Not work using (XmlWriter writer = XmlWriter.Create("books.xml",settings)) { writer.WriteStartElement("book"); writer.WriteElementString("title", "Graphics Programming using GDI+"); writer.WriteElementString("author", "Mahesh Chand"); writer.WriteElementString("publisher", "Addison-Wesley"); writer.WriteElementString("price", "64.95"); writer.WriteEndElement(); writer.Flush(); }
Ketan ShindePosted Jan 30, 2018, 11:48 PM
Using (XmlWriter writer = XmlWriter.Create("books.xml",settings)) { writer.WriteStartElement("book"); writer.WriteElementString("title", "Graphics Programming using GDI+"); writer.WriteElementString("author", "Mahesh Chand"); writer.WriteElementString("publisher", "Addison-Wesley"); writer.WriteElementString("price", "64.95"); writer.WriteEndElement(); writer.Flush(); }
Bảo GiaPosted Oct 25, 2017, 4:02 AM
How can I write Element bool, type <false/> or <true/>?
Ajeet MishraPosted May 17, 2016, 8:46 AM
Nice
Akaash Chintamani MeherPosted Aug 27, 2014, 5:09 AM
nice......! But How to write multiple values and multiple times(not at a time) in a xml file?