XmlWriter.ToXml

Overview

Returns the xml content as string.

string myXmlWriter.ToXml()

Remarks

This method returns the xml content as string.

Example

var writer = $Xml.Create(); writer.StartElement('Customer'); writer.Write('Doe'); writer.EndElement(); var xml = writer.ToXml(); // xml: <Customer>Doe</Customer>

Copyright © 2010 - 2023 Emakin. All rights reserved.