This document is provided on an "AS IS" basis without warranties of any kind. Smartsite iXperion class libraries may change in future releases.

Syntax

C# Copy imageCopy Code
                                  public class HtmlWriter
Visual Basic (Declaration) Copy imageCopy Code
                                  Public Class HtmlWriter

The type exposes the following members.

Public Constructors

  Name Description
Public method HtmlWriter Overloaded.

Public Methods

  Name Description
Public method Close (Inherited from XmlTextWriter.)
Public method Dispose (Inherited from XmlWriter.)
Public method Equals (Inherited from Object.)
Public method Flush (Inherited from XmlTextWriter.)
Public method FlushAsync (Inherited from XmlWriter.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Public method LookupPrefix (Inherited from XmlTextWriter.)
Public method ToString (Inherited from Object.)
Public method WriteAttributes
This method is overriden to filter out attributes which are not allowed
(Overrides XmlWriter..::WriteAttributes(XmlReader, Boolean).)
Public method WriteAttributesAsync (Inherited from XmlWriter.)
Public method WriteAttributeString (Inherited from XmlWriter.)
Public method WriteAttributeString (Inherited from XmlWriter.)
Public method WriteAttributeString (Inherited from XmlWriter.)
Public method WriteAttributeStringAsync (Inherited from XmlWriter.)
Public method WriteBase64 (Inherited from XmlTextWriter.)
Public method WriteBase64Async (Inherited from XmlWriter.)
Public method WriteBinHex (Inherited from XmlTextWriter.)
Public method WriteBinHexAsync (Inherited from XmlWriter.)
Public method WriteCData (Inherited from XmlTextWriter.)
Public method WriteCDataAsync (Inherited from XmlWriter.)
Public method WriteCharEntity (Inherited from XmlTextWriter.)
Public method WriteCharEntityAsync (Inherited from XmlWriter.)
Public method WriteChars (Inherited from XmlTextWriter.)
Public method WriteCharsAsync (Inherited from XmlWriter.)
Public method WriteComment (Overrides XmlTextWriter..::WriteComment(String).)
Public method WriteCommentAsync (Inherited from XmlWriter.)
Public method WriteDocType (Inherited from XmlTextWriter.)
Public method WriteDocTypeAsync (Inherited from XmlWriter.)
Public method WriteElementString (Inherited from XmlWriter.)
Public method WriteElementString (Inherited from XmlWriter.)
Public method WriteElementString (Inherited from XmlWriter.)
Public method WriteElementStringAsync (Inherited from XmlWriter.)
Public method WriteEndAttribute (Inherited from XmlTextWriter.)
Public method WriteEndDocument (Inherited from XmlTextWriter.)
Public method WriteEndDocumentAsync (Inherited from XmlWriter.)
Public method WriteEndElement (Inherited from XmlTextWriter.)
Public method WriteEndElementAsync (Inherited from XmlWriter.)
Public method WriteEntityRef (Inherited from XmlTextWriter.)
Public method WriteEntityRefAsync (Inherited from XmlWriter.)
Public method WriteFullEndElement (Inherited from XmlTextWriter.)
Public method WriteFullEndElementAsync (Inherited from XmlWriter.)
Public method WriteName (Inherited from XmlTextWriter.)
Public method WriteNameAsync (Inherited from XmlWriter.)
Public method WriteNmToken (Inherited from XmlTextWriter.)
Public method WriteNmTokenAsync (Inherited from XmlWriter.)
Public method WriteNode (Inherited from XmlWriter.)
Public method WriteNode (Inherited from XmlWriter.)
Public method WriteNodeAsync (Inherited from XmlWriter.)
Public method WriteNodeAsync (Inherited from XmlWriter.)
Public method WriteProcessingInstruction (Inherited from XmlTextWriter.)
Public method WriteProcessingInstructionAsync (Inherited from XmlWriter.)
Public method WriteQualifiedName (Inherited from XmlTextWriter.)
Public method WriteQualifiedNameAsync (Inherited from XmlWriter.)
Public method WriteRaw (Inherited from XmlTextWriter.)
Public method WriteRaw (Inherited from XmlTextWriter.)
Public method WriteRawAsync (Inherited from XmlWriter.)
Public method WriteRawAsync (Inherited from XmlWriter.)
Public method WriteStartAttribute (Inherited from XmlWriter.)
Public method WriteStartAttribute (Inherited from XmlWriter.)
Public method WriteStartAttribute (Inherited from XmlTextWriter.)
Public method WriteStartDocument (Inherited from XmlTextWriter.)
Public method WriteStartDocument (Inherited from XmlTextWriter.)
Public method WriteStartDocumentAsync (Inherited from XmlWriter.)
Public method WriteStartDocumentAsync (Inherited from XmlWriter.)
Public method WriteStartElement Overloaded.
Public method WriteStartElementAsync (Inherited from XmlWriter.)
Public method WriteString
The reason why we are overriding this method is, we do not want the output to be encoded for texts inside attribute and inside node elements. For example, all the nbsp; gets converted to amp;nbsp in output. But this does not apply to HTML. In HTML, we need to have nbsp; as it is.
(Overrides XmlTextWriter..::WriteString(String).)
Public method WriteStringAsync (Inherited from XmlWriter.)
Public method WriteSurrogateCharEntity (Inherited from XmlTextWriter.)
Public method WriteSurrogateCharEntityAsync (Inherited from XmlWriter.)
Public method WriteValue (Inherited from XmlWriter.)
Public method WriteValue (Inherited from XmlWriter.)
Public method WriteValue (Inherited from XmlWriter.)
Public method WriteValue (Inherited from XmlWriter.)
Public method WriteValue (Inherited from XmlWriter.)
Public method WriteValue (Inherited from XmlWriter.)
Public method WriteValue (Inherited from XmlWriter.)
Public method WriteValue (Inherited from XmlWriter.)
Public method WriteValue (Inherited from XmlWriter.)
Public method WriteValue (Inherited from XmlWriter.)
Public method WriteWhitespace (Overrides XmlTextWriter..::WriteWhitespace(String).)
Public method WriteWhitespaceAsync (Inherited from XmlWriter.)

Protected Methods

  Name Description
Protected method Dispose (Inherited from XmlWriter.)
Protected method Finalize (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Protected method WriteEndAttributeAsync (Inherited from XmlWriter.)
Protected method WriteStartAttributeAsync (Inherited from XmlWriter.)

Public Fields

  Name Description
Public field FilterOutput
If set to true, it will filter the output by using tag and attribute filtering, space reduce etc
Public field ReduceConsecutiveSpace
If true, it will reduce consecutive non-breaking spaces with one instance
Public field RemoveNewlines
New lines \r\n are replaced with space which saves space and makes the output compact
Public field ReplacementTag
If any tag found which is not allowed, it is replaced by this tag. Specify a tag which has least impact on output

Public Properties

  Name Description
Public property AllowedAttributes
Gets or sets the allowed attributes.
Public property AllowedTags
Gets or sets the allowed tags.
Public property BaseStream (Inherited from XmlTextWriter.)
Public property Formatting (Inherited from XmlTextWriter.)
Public property Indentation (Inherited from XmlTextWriter.)
Public property IndentChar (Inherited from XmlTextWriter.)
Public property Namespaces (Inherited from XmlTextWriter.)
Public property QuoteChar (Inherited from XmlTextWriter.)
Public property Settings (Inherited from XmlWriter.)
Public property WriteState (Inherited from XmlTextWriter.)
Public property XmlLang (Inherited from XmlTextWriter.)
Public property XmlSpace (Inherited from XmlTextWriter.)

See Also

Advanced