Skip to content

Write

Writes the specified value to the current element.

1
myXmlWriter.Write(value: string):XmlWriter

Parameters

string value
    value to write

Remarks

This method writes the specified value to the current element and returns the current writer instance.
value is encoded with XML encoding rules.

Example

1
2
3
4
5
6
var writer = $Xml.Create();
writer.StartElement('Customer');
writer.Write('Doe');
writer.EndElement();
var xml = writer.ToXml();
// xml: <Customer>Doe</Customer>

See Also