C# Class Sage.Views.XHtmlXmlWriter

Ensures that all HTML tags that need to have the matching closing tag are not collapsed.
Inheritance: XmlWrappingWriter
Mostra file Open project: igorfrance/sage Class Usage Examples

Public Methods

Method Description
WriteEndElement ( ) : void

Closes one element and pops the corresponding namespace scope.

WriteStartElement ( string prefix, string localName, string ns ) : void

Writes the specified start tag and associates it with the given namespace and prefix.

XHtmlXmlWriter ( Stream stream ) : System

Initializes a new instance of the XHtmlXmlWriter class.

XHtmlXmlWriter ( Stream stream, XmlWriterSettings settings ) : System

Initializes a new instance of the XHtmlXmlWriter class.

XHtmlXmlWriter ( XmlWriter writer ) : System

Initializes a new instance of the XHtmlXmlWriter class.

Method Details

WriteEndElement() public method

Closes one element and pops the corresponding namespace scope.
public WriteEndElement ( ) : void
return void

WriteStartElement() public method

Writes the specified start tag and associates it with the given namespace and prefix.
The writer is closed.
public WriteStartElement ( string prefix, string localName, string ns ) : void
prefix string The namespace prefix of the element.
localName string The local name of the element.
ns string The namespace URI to associate with the element. If this namespace is /// already in scope and has an associated prefix then the writer automatically writes /// that prefix also.
return void

XHtmlXmlWriter() public method

Initializes a new instance of the XHtmlXmlWriter class.
public XHtmlXmlWriter ( Stream stream ) : System
stream Stream The stream to write to.
return System

XHtmlXmlWriter() public method

Initializes a new instance of the XHtmlXmlWriter class.
public XHtmlXmlWriter ( Stream stream, XmlWriterSettings settings ) : System
stream Stream The stream to write to.
settings System.Xml.XmlWriterSettings The XmlWriterSettings to use.
return System

XHtmlXmlWriter() public method

Initializes a new instance of the XHtmlXmlWriter class.
public XHtmlXmlWriter ( XmlWriter writer ) : System
writer System.Xml.XmlWriter The writer to write to.
return System