Attribute¶
Adds a new attribute with the specified name and value to current element.
1 |
|
Parameters¶
string name
name of attribute
( string | number | boolean | DateTimeOffset ) value
value of attribute
Remarks¶
This method adds a new attribute with the specified name and 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 |
|