C# Class Sage.Views.XHtmlXmlWriter

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

Méthodes publiques

Méthode 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 méthode

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

WriteStartElement() public méthode

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.
Résultat void

XHtmlXmlWriter() public méthode

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

XHtmlXmlWriter() public méthode

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.
Résultat System

XHtmlXmlWriter() public méthode

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