Share via


IXmlWriter Methods (Compact 7)

3/12/2014

This topic describes the IXmlWriter methods.

In This Section

  • CreateXmlWriter
    Creates a new IXmlWriter (this constructor is actually a global function)
  • Flush
    Flushes whatever is in the buffer to the underlying stream, and then flushes the underlying stream
  • SetOutput
    Sets the output stream for the writer
  • WriteAttributes
    Copies attributes from the specified source IXmlReader to the IXmlWriter
  • WriteCData
    Writes out a CDATA section that contains 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 that contains 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. This makes sure that the name is valid according to the XML specification.
  • WriteNmToken
    Writes out the specified name. This makes sure 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.
  • WriteQualifiedName
    Writes out the specified namespace-qualified name by looking up the prefix that is in scope for the specified namespace
  • WriteRaw
    Lets the caller to write out raw markup manually
  • WriteStartElement
    Writes out the specified start tag and associates it with the specified namespce
  • WriteString
    Writes out the specified text content, escaping any markup in the content

See Also

Reference

IXmlWriter
IXmlWriter Properties