XmlWriter.StartElement
Overview
Starts a new element with the specified name.
XmlWriter myXmlWriter.StartElement(name: string)
Starts a new element with the specified name and namespace.
XmlWriter myXmlWriter.StartElement(name: string, ns: string)
Arguments
string name
name of element
string ns
namespace of element
Remarks
This method creates a new element with the specified name and returns the current writer instance.
Example
var writer = $Xml.Create();
writer.StartElement('Customer');
writer.EndElement();
var xml = writer.ToXml();
Remarks
This method creates a new element with the specified name and namespace and returns the current writer instance.
Example
var writer = $Xml.Create();
writer.StartElement('Customer', 'http://tempuri.org/');
writer.EndElement();
var xml = writer.ToXml();
Copyright © 2010 - 2023 Emakin. All rights reserved.