The SgmlReader type exposes the following members.

Constructors

  Name Description
Public method SgmlReader
Initializes a new instance of the SgmlReader class

Methods

  Name Description
Public method Close (Overrides XmlReader..::..Close()()()().)
Protected method Dispose
Releases the unmanaged resources used by the XmlReader and optionally releases the managed resources.
(Inherited from XmlReader.)
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected method Finalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetAttribute(Int32) (Overrides XmlReader..::..GetAttribute(Int32).)
Public method GetAttribute(String) (Overrides XmlReader..::..GetAttribute(String).)
Public method GetAttribute(String, String) (Overrides XmlReader..::..GetAttribute(String, String).)
Public method GetEncoding
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetType
Gets the Type of the current instance.
(Inherited from Object.)
Public method IsStartElement()()()()
Calls MoveToContent()()()() and tests if the current content node is a start tag or empty element tag.
(Inherited from XmlReader.)
Public method IsStartElement(String)
Calls MoveToContent()()()() and tests if the current content node is a start tag or empty element tag and if the Name property of the element found matches the given argument.
(Inherited from XmlReader.)
Public method IsStartElement(String, String)
Calls MoveToContent()()()() and tests if the current content node is a start tag or empty element tag and if the LocalName and NamespaceURI properties of the element found match the given strings.
(Inherited from XmlReader.)
Public method LookupNamespace (Overrides XmlReader..::..LookupNamespace(String).)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method MoveToAttribute(Int32) (Overrides XmlReader..::..MoveToAttribute(Int32).)
Public method MoveToAttribute(String) (Overrides XmlReader..::..MoveToAttribute(String).)
Public method MoveToAttribute(String, String) (Overrides XmlReader..::..MoveToAttribute(String, String).)
Public method MoveToContent
Checks whether the current node is a content (non-white space text, CDATA, Element, EndElement, EntityReference, or EndEntity) node. If the node is not a content node, the reader skips ahead to the next content node or end of file. It skips over nodes of the following type: ProcessingInstruction, DocumentType, Comment, Whitespace, or SignificantWhitespace.
(Inherited from XmlReader.)
Public method MoveToElement (Overrides XmlReader..::..MoveToElement()()()().)
Public method MoveToFirstAttribute (Overrides XmlReader..::..MoveToFirstAttribute()()()().)
Public method MoveToNextAttribute (Overrides XmlReader..::..MoveToNextAttribute()()()().)
Public method Read (Overrides XmlReader..::..Read()()()().)
Public method ReadAttributeValue (Overrides XmlReader..::..ReadAttributeValue()()()().)
Public method ReadContentAs
Reads the content as an object of the type specified.
(Inherited from XmlReader.)
Public method ReadContentAsBase64
Reads the content and returns the Base64 decoded binary bytes.
(Inherited from XmlReader.)
Public method ReadContentAsBinHex
Reads the content and returns the BinHex decoded binary bytes.
(Inherited from XmlReader.)
Public method ReadContentAsBoolean
Reads the text content at the current position as a Boolean.
(Inherited from XmlReader.)
Public method ReadContentAsDateTime
Reads the text content at the current position as a DateTime object.
(Inherited from XmlReader.)
Public method ReadContentAsDecimal
Reads the text content at the current position as a Decimal object.
(Inherited from XmlReader.)
Public method ReadContentAsDouble
Reads the text content at the current position as a double-precision floating-point number.
(Inherited from XmlReader.)
Public method ReadContentAsFloat
Reads the text content at the current position as a single-precision floating point number.
(Inherited from XmlReader.)
Public method ReadContentAsInt
Reads the text content at the current position as a 32-bit signed integer.
(Inherited from XmlReader.)
Public method ReadContentAsLong
Reads the text content at the current position as a 64-bit signed integer.
(Inherited from XmlReader.)
Public method ReadContentAsObject
Reads the text content at the current position as an Object.
(Inherited from XmlReader.)
Public method ReadContentAsString
Reads the text content at the current position as a String object.
(Inherited from XmlReader.)
Public method ReadElementContentAs(Type, IXmlNamespaceResolver)
Reads the element content as the requested type.
(Inherited from XmlReader.)
Public method ReadElementContentAs(Type, IXmlNamespaceResolver, String, String)
Checks that the specified local name and namespace URI matches that of the current element, then reads the element content as the requested type.
(Inherited from XmlReader.)
Public method ReadElementContentAsBase64
Reads the element and decodes the Base64 content.
(Inherited from XmlReader.)
Public method ReadElementContentAsBinHex
Reads the element and decodes the BinHex content.
(Inherited from XmlReader.)
Public method ReadElementContentAsBoolean()()()()
Reads the current element and returns the contents as a Boolean object.
(Inherited from XmlReader.)
Public method ReadElementContentAsBoolean(String, String)
Checks that the specified local name and namespace URI matches that of the current element, then reads the current element and returns the contents as a Boolean object.
(Inherited from XmlReader.)
Public method ReadElementContentAsDateTime()()()()
Reads the current element and returns the contents as a DateTime object.
(Inherited from XmlReader.)
Public method ReadElementContentAsDateTime(String, String)
Checks that the specified local name and namespace URI matches that of the current element, then reads the current element and returns the contents as a DateTime object.
(Inherited from XmlReader.)
Public method ReadElementContentAsDecimal()()()()
Reads the current element and returns the contents as a Decimal object.
(Inherited from XmlReader.)
Public method ReadElementContentAsDecimal(String, String)
Checks that the specified local name and namespace URI matches that of the current element, then reads the current element and returns the contents as a Decimal object.
(Inherited from XmlReader.)
Public method ReadElementContentAsDouble()()()()
Reads the current element and returns the contents as a double-precision floating-point number.
(Inherited from XmlReader.)
Public method ReadElementContentAsDouble(String, String)
Checks that the specified local name and namespace URI matches that of the current element, then reads the current element and returns the contents as a double-precision floating-point number.
(Inherited from XmlReader.)
Public method ReadElementContentAsFloat()()()()
Reads the current element and returns the contents as single-precision floating-point number.
(Inherited from XmlReader.)
Public method ReadElementContentAsFloat(String, String)
Checks that the specified local name and namespace URI matches that of the current element, then reads the current element and returns the contents as a single-precision floating-point number.
(Inherited from XmlReader.)
Public method ReadElementContentAsInt()()()()
Reads the current element and returns the contents as a 32-bit signed integer.
(Inherited from XmlReader.)
Public method ReadElementContentAsInt(String, String)
Checks that the specified local name and namespace URI matches that of the current element, then reads the current element and returns the contents as a 32-bit signed integer.
(Inherited from XmlReader.)
Public method ReadElementContentAsLong()()()()
Reads the current element and returns the contents as a 64-bit signed integer.
(Inherited from XmlReader.)
Public method ReadElementContentAsLong(String, String)
Checks that the specified local name and namespace URI matches that of the current element, then reads the current element and returns the contents as a 64-bit signed integer.
(Inherited from XmlReader.)
Public method ReadElementContentAsObject()()()()
Reads the current element and returns the contents as an Object.
(Inherited from XmlReader.)
Public method ReadElementContentAsObject(String, String)
Checks that the specified local name and namespace URI matches that of the current element, then reads the current element and returns the contents as an Object.
(Inherited from XmlReader.)
Public method ReadElementContentAsString()()()()
Reads the current element and returns the contents as a String object.
(Inherited from XmlReader.)
Public method ReadElementContentAsString(String, String)
Checks that the specified local name and namespace URI matches that of the current element, then reads the current element and returns the contents as a String object.
(Inherited from XmlReader.)
Public method ReadElementString()()()()
Reads a text-only element.
(Inherited from XmlReader.)
Public method ReadElementString(String)
Checks that the Name property of the element found matches the given string before reading a text-only element.
(Inherited from XmlReader.)
Public method ReadElementString(String, String)
Checks that the LocalName and NamespaceURI properties of the element found matches the given strings before reading a text-only element.
(Inherited from XmlReader.)
Public method ReadEndElement
Checks that the current content node is an end tag and advances the reader to the next node.
(Inherited from XmlReader.)
Public method ReadInnerXml (Overrides XmlReader..::..ReadInnerXml()()()().)
Public method ReadOuterXml (Overrides XmlReader..::..ReadOuterXml()()()().)
Public method ReadStartElement()()()()
Checks that the current node is an element and advances the reader to the next node.
(Inherited from XmlReader.)
Public method ReadStartElement(String)
Checks that the current content node is an element with the given Name and advances the reader to the next node.
(Inherited from XmlReader.)
Public method ReadStartElement(String, String)
Checks that the current content node is an element with the given LocalName and NamespaceURI and advances the reader to the next node.
(Inherited from XmlReader.)
Public method ReadString (Overrides XmlReader..::..ReadString()()()().)
Public method ReadSubtree
Returns a new XmlReader instance that can be used to read the current node, and all its descendants.
(Inherited from XmlReader.)
Public method ReadToDescendant(String)
Advances the XmlReader to the next descendant element with the specified qualified name.
(Inherited from XmlReader.)
Public method ReadToDescendant(String, String)
Advances the XmlReader to the next descendant element with the specified local name and namespace URI.
(Inherited from XmlReader.)
Public method ReadToFollowing(String)
Reads until an element with the specified qualified name is found.
(Inherited from XmlReader.)
Public method ReadToFollowing(String, String)
Reads until an element with the specified local name and namespace URI is found.
(Inherited from XmlReader.)
Public method ReadToNextSibling(String)
Advances the XmlReader to the next sibling element with the specified qualified name.
(Inherited from XmlReader.)
Public method ReadToNextSibling(String, String)
Advances the XmlReader to the next sibling element with the specified local name and namespace URI.
(Inherited from XmlReader.)
Public method ReadValueChunk
Reads large streams of text embedded in an XML document.
(Inherited from XmlReader.)
Public method ResolveEntity (Overrides XmlReader..::..ResolveEntity()()()().)
Public method ScanLiteral
Public method SetBaseUri
The base Uri is used to resolve relative Uri's like the SystemLiteral and Href properties. This is a method because BaseURI is a read-only property on the base XmlReader class.
Public method Skip
Skips the children of the current node.
(Inherited from XmlReader.)
Public method ToString
Returns a String that represents the current Object.
(Inherited from Object.)

Properties

  Name Description
Public property AttributeCount (Overrides XmlReader..::..AttributeCount.)
Public property BaseURI (Overrides XmlReader..::..BaseURI.)
Public property CanReadBinaryContent
Gets a value indicating whether the XmlReader implements the binary content read methods.
(Inherited from XmlReader.)
Public property CanReadValueChunk
Gets a value indicating whether the XmlReader implements the ReadValueChunk(array<Char>[]()[][], Int32, Int32) method.
(Inherited from XmlReader.)
Public property CanResolveEntity
Gets a value indicating whether this reader can parse and resolve entities.
(Inherited from XmlReader.)
Public property CaseFolding
Public property Depth (Overrides XmlReader..::..Depth.)
Public property DocType
The name of root element specified in the DOCTYPE tag.
Public property Dtd
Specify the SgmlDtd object directly. This allows you to cache the Dtd and share it across multipl SgmlReaders. To load a DTD from a URL use the SystemLiteral property.
Public property EOF (Overrides XmlReader..::..EOF.)
Public property ErrorLog
DTD validation errors are written to this stream.
Public property ErrorLogFile
DTD validation errors are written to this log file.
Public property HasAttributes
Gets a value indicating whether the current node has any attributes.
(Inherited from XmlReader.)
Public property HasValue (Overrides XmlReader..::..HasValue.)
Public property Href
Specify the location of the input SGML document as a URL.
Public property InputStream
The input stream containing SGML data to parse. You must specify this property or the Href property before calling Read().
Public property InternalSubset
The DTD internal subset in the DOCTYPE tag
Public property IsDefault (Overrides XmlReader..::..IsDefault.)
Public property IsEmptyElement (Overrides XmlReader..::..IsEmptyElement.)
Public property Item[([( Int32])]) (Overrides XmlReader..::..Item[([( Int32])]) .)
Public property Item[([( String])]) (Overrides XmlReader..::..Item[([( String])]) .)
Public property Item[([( String, String])]) (Overrides XmlReader..::..Item[([( String, String])]) .)
Public property LocalName (Overrides XmlReader..::..LocalName.)
Public property Name (Overrides XmlReader..::..Name.)
Public property NamespaceURI (Overrides XmlReader..::..NamespaceURI.)
Public property NameTable (Overrides XmlReader..::..NameTable.)
Public property NodeType (Overrides XmlReader..::..NodeType.)
Public property Prefix (Overrides XmlReader..::..Prefix.)
Public property PublicIdentifier
The PUBLIC identifier in the DOCTYPE tag
Public property QuoteChar (Overrides XmlReader..::..QuoteChar.)
Public property ReadState (Overrides XmlReader..::..ReadState.)
Public property SchemaInfo
Gets the schema information that has been assigned to the current node as a result of schema validation.
(Inherited from XmlReader.)
Public property Settings
Gets the XmlReaderSettings object used to create this XmlReader instance.
(Inherited from XmlReader.)
Public property StripDocType
Whether to strip out the DOCTYPE tag from the output (default true)
Public property SystemLiteral
The SYSTEM literal in the DOCTYPE tag identifying the location of the DTD.
Public property Value (Overrides XmlReader..::..Value.)
Public property ValueType
Gets The Common Language Runtime (CLR) type for the current node.
(Inherited from XmlReader.)
Public property WebProxy
Sometimes you need to specify a proxy server in order to load data via HTTP from outside the firewall. For example: "itgproxy:80".
Public property WhitespaceHandling
Public property XmlLang (Overrides XmlReader..::..XmlLang.)
Public property XmlSpace (Overrides XmlReader..::..XmlSpace.)

See Also