c# - Render Empty XML Elements as Parent Elements -
I need an awkward element where an XML to take some XML that is actually causing your application to be created Parents have to be chained in the form of elements. For example:
& lt; Element foo = "bar" />
should be:
& lt; Element foo = "bar" & gt; & Lt; / Element & gt;
I'm not aware of any way that allows you to change this. Anyone know how to accomplish this?
After
I have increased so much that I could cancel the WriteEndElement () method, forcing it to write WriteFullEndElement () This was the trick.
Note: which sees updates to my question, please note. IE was rendering XML in a brief form as soon as I opened it in Notepad, I realized everything was okay
Public class FullEndingXmlTextWriter was working. XmlTextWriter {Public FullEndingXmlTextWriter (TextWriter W): Public FullEndingXmlTextWriter Support (Stream W, Encoding Encoding): Base (W, Encoding) {} Public FullEndingXmlTextWriter (string file name, encoding encoding): Base (file name, encoding) } {} Public override zero WriteEndElement () {this.WriteFullEndElement (); }}
Comments
Post a Comment