To close the element, you call the Write End Attribute method.Namespaces are used to qualify element and attribute names in an XML document.
The The Write Value method accepts a common language runtime (CLR) object, converts the input value to its string representation according to XML schema definition language (XSD) data type conversion rules, and writes it out by using the Write String method.
This is easier than using the methods in the Xml Convert class to convert the typed data to a string value before writing it out.
When writing to text, the typed value is serialized to text by using the Xml Convert rules for that schema type.
class writes XML data to a stream, file, text reader, or string.
It supports the W3C Extensible Markup Language (XML) 1.0 (fourth edition) and Namespaces in XML 1.0 (third edition) recommendations.
The members of the In this section: Creating an XML writer Specifying the output format Data conformance Writing elements Writing attributes Handling namespaces Writing typed data Closing the XML writer Asynchronous programming Security considerations Create method. To write an element value by using multiple method calls.
To specify the set of features you want to enable on the XML writer, pass an Xml Writer Settings to the Create method. For example, you can call Write Value to write a typed value, Write Char Entity to write a character entity, Write Attribute String to write an attribute, or you can write a child element.
This is a more sophisticated version of the Write Element String method.
To close the element, you call the Write End Element or Write Full End Element method.