I

IXmlWriter

Abstraction of XML output classes that provide a consistent way to write XML elements to some output
Inheritance Hierarchy

Members

No filters for this type

Properties

Gets the namespace manager associated with this writer.
readonlyabstract

Property Value

The namespace manager.

Methods

Closes the document.
This is typically used to actually flush the document to an output stream
abstract
Gets a text representation of all content that has been written so far.
Write an XML attribute with the given parameters.
The attribute is not bound to an XML namespace.

Parameters

localName: string
The name of the attribute.
value: string
The value of the attribute.

Return Value

IXmlWriter
The writer instance writer for writer chaining.
Writes an XML attribute node.
The attribute is attached to the closest open XML element that has been started with writeStartElement or writeStartElement. Note that namespace declarations should not be written directly as attributes. Instead the namespaceManager should be used.
abstract

Parameters

prefix: string
The namespace prefix of the attribute
localName: string
The local name of the attribute
ns: string
The namespace URI of this attribute
value: string
The value of this attribute

Return Value

IXmlWriter
The writer instance for further chaining
Writes a CDATA section.
abstract

Parameters

content: string
The content of the CDATA section

Return Value

IXmlWriter
The writer instance for further chaining
Writes an XML comment node
abstract

Parameters

comment: string
The content of the comment

Return Value

IXmlWriter
The writer instance for further chaining
Writes a document fragment.
abstract

Parameters

fragment: Document

Return Value

IXmlWriter
The writer instance for further chaining
Closes the output.
Attempts to write after this method has been called will have undefined results.
abstract
Closes an XML element previously opened with writeStartElement or writeStartElement.
Write an XML attribute from the given attribute struct.

Parameters

attribute: GraphMLXmlAttribute
Encapsulates the current attribute values.

Return Value

IXmlWriter
The writer instance writer for writer chaining.
Writes an XML processing instruction.
abstract

Parameters

target: string
The target of the PI
data: string
The data of the PI

Return Value

IXmlWriter
The writer instance for further chaining
Begins the output process.
Begin a new XML element with given parameters

All subsequent output is attached to this element until writeEndElement has been called or a new element has been started.

This acts like writeStartElement, but uses the default prefix for the namespace

abstract

Parameters

localName: string
The local name of this element
ns: string
The namespace of this element

Return Value

IXmlWriter
The writer instance for further chaining
Begins a new XML element with given parameters
All subsequent output is attached to this element until writeEndElement has been called or a new element has been started.
abstract

Parameters

prefix: string
The namespace prefix to use for this element
localName: string
The local name of this element
ns: string
The namespace of this element

Return Value

IXmlWriter
The writer instance for further chaining
Writes a text node.
The string value of s will be correctly escaped
abstract

Parameters

s: string
The string that gets written as XML text

Return Value

IXmlWriter
The writer instance for further chaining