Top "Xmltextwriter" questions

Represents a writer that provides a fast, non-cached, forward-only way of generating streams

Modify XML existing content in C#

Purpose: I plan to Create a XML file with XmlTextWriter and Modify/Update some Existing Content with XmlNode SelectSingleNode(), node.…

c# xml xmlnode xmltextwriter
INSERT XML into SQL Server 2008 database

Hello I'm trying to insert some XML data into a table on SQL Server 2008. However I keep getting thrown this …

sql sql-server xml xmltextwriter
How do I set the Settings property in XmlTextWriter, so that I can write each XML attribute on its own line?

I have this bit of code, which serializes an object to a file. I'm trying to get each XML attribute …

c# xml serialization xmlwriter xmltextwriter
What is the difference between XmlTextWriter and XmlWriter?

I am looking at these these two classes in C#: XmlTextWriter and XmlWriter. Can anyone explain the difference and tell …

c# xml xmlwriter xmltextwriter
How to write '&' in xml?

I am using xmlTextWriter to create the xml. writer.WriteStartElement("book"); writer.WriteAttributeString("author", "j.k.rowling"); writer.WriteAttributeString("year", "1990"); …

c# xml xmltextwriter
C#: XmlTextWriter.WriteElementString fails on empty strings?

I'm using XmlTextWriter and its WriteElementString method, for example: XmlTextWriter writer = new XmlTextWriter("filename.xml", null); writer.WriteStartElement("User"); writer.…

c# xml xmltextwriter writeelementstring
XmlTextWriter incorrectly writing control characters

.NET's XmlTextWriter creates invalid xml files. In XML, some control characters are allowed, like 'horizontal tab' (	), but others …

c# .net xml xmltextwriter control-characters
How to write a string into a xml file on c#?

I've created a xml file using c#. XmlTextWriter writer = new XmlTextWriter("Product.xml", System.Text.Encoding.UTF8); writer.WriteStartDocument(true); …

xml c#-4.0 xmltextwriter
xdocument save preserve white space inside tags

I am using XDocument in LINQ to edit (insert) and save xml document. XDocument doc = XDocument.Load("c:\\sample.xml", …

c# linq-to-xml xmltextwriter
How to Prevent the conversion of & to & using XmlTextWriter?

The '&' in the text gets escaped and gets converted to & when creating the xml file …

c# xml vb.net escaping xmltextwriter