Skip to content

Create

Creates a new XmlWriter instance.

myXml.Create():XmlWriter (XmlWriter)

Returns

A new XmlWriter instance.

Remarks

This method creates a new XmlWriter instance, which can be used to programmatically construct XML documents.

Example

1
2
3
4
var writer = $Xml.Create();
writer.StartElement('Customer');
writer.EndElement();
var xml = writer.ToXml();

See Also