SP.XmlWriter Methods

Applies to: SharePoint Foundation 2010

The following table lists the methods of the SP.XmlWriter class.

Methods

Name

Description

close

This member is reserved for internal use and is not intended to be used directly from your code.

create

Creates a new instance of the XmlWriter class with the specified string builder.

writeAttributeString

Appends an attribute with the specified name and value in XML format to the object’s string builder.

writeElementString

Appends an element with the specified tag name and value in XML format to the object’s string builder.

writeEndAttribute

Appends an end of an attribute in XML format to the object’s string builder.

writeEndElement

Appends an end element tag in XML format to the object’s string builder.

writeRaw

Appends the specified text to the object’s string builder.

writeStartAttribute

Appends the start of an attribute with the specified name in XML format to the object’s string builder.

writeStartElement

Appends a start element tag with the specified name in XML format to the object’s string builder.

writeString

Appends the specified value for an element tag or attribute to the object’s string builder.

XmlWriter

This member is reserved for internal use and is not intended to be used directly from your code.

Applies To

SP.XmlWriter Class

See Also

Reference

SP Namespace