Top "Xmlwriter" questions

System.

Serialize Entity Framework object with children to XML file

I'm querying data with parent/child result sets using Entity Framework and I want to export this data to an …

entity-framework xml-serialization entity eager-loading xmlwriter
Output XMLWriter to XML file

I am currently using XMLWriter to display an xml file. However I would like to know how I could export …

php xml xmlwriter
how to create an xml using xml writer without declaration element

I am using XmlWriter.Create() to get a writer instance then write the XML, but the result has the <?…

c# .net xml xmlwriter
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
Create xml file with XmlWriter

I am having problems with the Create method in XmlWriter. Even when i use the example from msdn, it will …

c# xml windows-store-apps xmlwriter
Why is the XmlWriter always outputting utf-16 encoding?

I have this extension method public static string SerializeObject<T>(this T value) { var serializer = new XmlSerializer(typeof(…

c# xml-serialization xmlwriter
Can we force XmlWriter to issue <my-tag></my-tag> rather than <my-tag/>?

By default, someXmlWriter.WriteElementString("my-tag", someString); produces <my-tag /> I looked around XmlWriterSettings class for possible options that would …

.net xml xmlwriter
Serialization of object to xml and string without \r\n special characters

I want to serialize my object to xml and then to a string. public class MyObject { [XmlElement] public string Name […

c# xml-serialization xmlwriter
Adding multiple namespace declarations in XmlWriter

I am trying to write out the following element using XmlWriter <kml xmlns="http://www.opengis.net/kml/2.2" xmlns:…

namespaces xmlwriter
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