C# Класс Sage.Views.XHtmlXmlWriter

Ensures that all HTML tags that need to have the matching closing tag are not collapsed.
Наследование: XmlWrappingWriter
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

WriteEndElement() публичный Метод

Closes one element and pops the corresponding namespace scope.
public WriteEndElement ( ) : void
Результат void

WriteStartElement() публичный Метод

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.
Результат void

XHtmlXmlWriter() публичный Метод

Initializes a new instance of the XHtmlXmlWriter class.
public XHtmlXmlWriter ( Stream stream ) : System
stream Stream The stream to write to.
Результат System

XHtmlXmlWriter() публичный Метод

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.
Результат System

XHtmlXmlWriter() публичный Метод

Initializes a new instance of the XHtmlXmlWriter class.
public XHtmlXmlWriter ( XmlWriter writer ) : System
writer System.Xml.XmlWriter The writer to write to.
Результат System