StartElement¶
Starts a new element with the specified name.
1 | |
Starts a new element with the specified name and namespace.
1 | |
Parameters¶
string name
The name of the element to start.
string ns
The namespace URI of the element.
Returns¶
The current XmlWriter instance, allowing for method chaining.
Remarks¶
This method creates a new element and makes it the current element for subsequent operations. Close every started element with XmlWriter.EndElement.
Examples¶
Write nested elements¶
1 2 3 4 5 6 7 8 9 | |
Write an element in a namespace¶
1 2 3 4 5 | |