IXmlWriter Methods

 

The following are the IXmlWriter methods.

Method Description
CreateXmlWriter Creates a new IXmlWriter. (This "constructor" is actually a global function.)
Flush Flushes whatever is in the buffer to the underlying stream, then flushes the underlying stream.
GetProperty (IXmlWriter) Returns the specified property.
SetOutput Sets the output stream for the writer.
SetProperty (IXmlWriter) Sets the specified property.
WriteAttributes Copies attributes from the specified source IXmlReader to the IXmlWriter.
WriteAttributeString Writes an attribute.
WriteCData Writes out a CDATA section containing the specified text.
WriteCharEntity Writes a character entity for the provided Unicode character value.
WriteChars Writes out the specified text content, escaping markup.
WriteComment Writes out a comment containing the specified text.
WriteDocType Writes out the <!DOCTYPE ...> declaration with the specified name and optional attributes.
WriteElementString Writes out the element with specified prefix, name, namespace and value.
WriteEndDocument Closes any open elements or attributes and puts the writer back in the Start state.
WriteEndElement Closes one element and pops the corresponding namespace scope. If the element contains no content, this method writes a short end tag (/>).
WriteEntityRef Writes out an entity reference with the specified name.
WriteFullEndElement Closes one element and pops the corresponding namespace scope. Always writes the full end tag.
WriteName Writes out the specified name, ensuring that the name is valid according to the XML specification.
WriteNmToken Writes out the specified name, ensuring that the name is a valid NmToken according to the XML specification.
WriteNode Copies the current node from the specified source IXmlReader to the IXmlWriter. Also writes children nodes.
WriteNodeShallow Copies the current node from the specified source IXmlReader to the IXmlWriter, without writing the children of the current node.
WriteProcessingInstruction Writes a processing instruction.
WriteQualifiedName Writes out the specified namespace-qualified name by looking up the prefix that is in scope for the specified namespace.
WriteRaw Allows the caller to write out raw markup manually.
WriteRawChars Writes out raw markup manually.
WriteStartDocument Writes out the XML declaration with the version "1.0".
WriteStartElement Writes out the specified start tag and associates it with the specified namespace.
WriteString Writes out the specified text content, escaping any markup in the content.
WriteSurrogateCharEntity Forces the generation of a surrogate character entity for the given string value.
WriteWhitespace Writes out the specified white space.

Requirements

Header: XmlLite.h

Library: XmlLite.lib

See Also

IXmlWriter