XmlValidatingReader Members

Represents a reader that provides document type definition (DTD), XML-Data Reduced (XDR) schema, and XML Schema definition language (XSD) validation.

The XmlValidatingReader type exposes the following members.

  NameDescription
Public method XmlValidatingReader Overloaded. Initializes a new instance of the XmlValidatingReader class.
Top

  NameDescription
Public method Close Changes the ReadState to Closed. (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 try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetAttribute Overloaded. Gets the value of an attribute.
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 HasLineInfo Gets a value indicating whether the class can return line information.
Public method IsStartElement Overloaded. Tests if the current content node is a start tag.
Public method LookupNamespace Resolves a namespace prefix in the current element's scope. (Overrides XmlReader.LookupNamespace(String).)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method MoveToAttribute Overloaded. Moves to the specified attribute.
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 Moves to the element that contains the current attribute node. (Overrides XmlReader.MoveToElement().)
Public method MoveToFirstAttribute Moves to the first attribute. (Overrides XmlReader.MoveToFirstAttribute().)
Public method MoveToNextAttribute Moves to the next attribute. (Overrides XmlReader.MoveToNextAttribute().)
Public method Read Reads the next node from the stream. (Overrides XmlReader.Read().)
Public method ReadAttributeValue Parses the attribute value into one or more Text, EntityReference, or EndEntity nodes. (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. (Overrides XmlReader.ReadContentAsBase64(Byte[], Int32, Int32).)
Public method ReadContentAsBinHex Reads the content and returns the BinHex decoded binary bytes. (Overrides XmlReader.ReadContentAsBinHex(Byte[], Int32, Int32).)
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 Overloaded. Reads the current element and returns the contents as an object of the type specified.
Public method ReadElementContentAsBase64 Reads the element and decodes the Base64 content. (Overrides XmlReader.ReadElementContentAsBase64(Byte[], Int32, Int32).)
Public method ReadElementContentAsBinHex Reads the element and decodes the BinHex content. (Overrides XmlReader.ReadElementContentAsBinHex(Byte[], Int32, Int32).)
Public method ReadElementContentAsBoolean Overloaded. Reads the current element value as a Boolean object.
Public method ReadElementContentAsDateTime Overloaded. Reads the current element and returns the contents as a DateTime object.
Public method ReadElementContentAsDecimal Overloaded. Reads the current element value as a Decimal object.
Public method ReadElementContentAsDouble Overloaded. Reads the current element and returns the contents as a double-precision floating-point number.
Public method ReadElementContentAsFloat Overloaded. Reads the current element value as a single-precision floating-point number.
Public method ReadElementContentAsInt Overloaded. Reads the current element and returns the contents as a 32-bit signed integer.
Public method ReadElementContentAsLong Overloaded. Reads the current element and returns the contents as a 64-bit signed integer.
Public method ReadElementContentAsObject Overloaded. Reads the current element and returns the contents as an Object.
Public method ReadElementContentAsString Overloaded. Reads the current element and returns the contents as a String object.
Public method ReadElementString Overloaded. This is a helper method for reading simple text-only elements.
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 When overridden in a derived class, reads all the content, including markup, as a string. (Inherited from XmlReader.)
Public method ReadOuterXml When overridden in a derived class, reads the content, including markup, representing this node and all its children. (Inherited from XmlReader.)
Public method ReadStartElement Overloaded. Checks that the current node is an element and advances the reader to the next node.
Public method ReadString Reads the contents of an element or text node as a string. (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 Overloaded. Advances the XmlReader to the next matching descendant element.
Public method ReadToFollowing Overloaded. Reads until the named element is found.
Public method ReadToNextSibling Overloaded. Advances the XmlReader to the next matching sibling element.
Public method ReadTypedValue Gets the common language runtime type for the specified XML Schema definition language (XSD) type.
Public method ReadValueChunk Reads large streams of text embedded in an XML document. (Inherited from XmlReader.)
Public method ResolveEntity Resolves the entity reference for EntityReference nodes. (Overrides XmlReader.ResolveEntity().)
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.)
Top

  NameDescription
Public property AttributeCount Gets the number of attributes on the current node. (Overrides XmlReader.AttributeCount.)
Public property BaseURI Gets the base URI of the current node. (Overrides XmlReader.BaseURI.)
Public property CanReadBinaryContent Gets a value indicating whether the XmlValidatingReader implements the binary content read methods. (Overrides XmlReader.CanReadBinaryContent.)
Public property CanReadValueChunk Gets a value indicating whether the XmlReader implements the ReadValueChunk method. (Inherited from XmlReader.)
Public property CanResolveEntity Gets a value indicating whether this reader can parse and resolve entities. (Overrides XmlReader.CanResolveEntity.)
Public property Depth Gets the depth of the current node in the XML document. (Overrides XmlReader.Depth.)
Public property Encoding Gets the encoding attribute for the document.
Public property EntityHandling Gets or sets a value that specifies how the reader handles entities.
Public property EOF Gets a value indicating whether the reader is positioned at the end of the stream. (Overrides XmlReader.EOF.)
Public property HasAttributes Gets a value indicating whether the current node has any attributes. (Inherited from XmlReader.)
Public property HasValue Gets a value indicating whether the current node can have a Value other than String.Empty. (Overrides XmlReader.HasValue.)
Public property IsDefault Gets a value indicating whether the current node is an attribute that was generated from the default value defined in the document type definition (DTD) or schema. (Overrides XmlReader.IsDefault.)
Public property IsEmptyElement Gets a value indicating whether the current node is an empty element (for example, <MyElement/>). (Overrides XmlReader.IsEmptyElement.)
Public property Item Overloaded.
Public property LineNumber Gets the current line number.
Public property LinePosition Gets the current line position.
Public property LocalName Gets the local name of the current node. (Overrides XmlReader.LocalName.)
Public property Name Gets the qualified name of the current node. (Overrides XmlReader.Name.)
Public property Namespaces Gets or sets a value indicating whether to do namespace support.
Public property NamespaceURI Gets the namespace Uniform Resource Identifier (URI) (as defined in the World Wide Web Consortium (W3C) Namespace specification) of the node on which the reader is positioned. (Overrides XmlReader.NamespaceURI.)
Public property NameTable Gets the XmlNameTable associated with this implementation. (Overrides XmlReader.NameTable.)
Public property NodeType Gets the type of the current node. (Overrides XmlReader.NodeType.)
Public property Prefix Gets the namespace prefix associated with the current node. (Overrides XmlReader.Prefix.)
Public property QuoteChar Gets the quotation mark character used to enclose the value of an attribute node. (Overrides XmlReader.QuoteChar.)
Public property Reader Gets the XmlReader used to construct this XmlValidatingReader.
Public property ReadState Gets the state of the reader. (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 Schemas Gets a XmlSchemaCollection to use for validation.
Public property SchemaType Gets a schema type object.
Public property Settings Gets the XmlReaderSettings object that was used to create this XmlValidatingReader instance. (Overrides XmlReader.Settings.)
Public property ValidationType Gets or sets a value indicating the type of validation to perform.
Public property Value Gets the text value of the current node. (Overrides XmlReader.Value.)
Public property ValueType Gets The Common Language Runtime (CLR) type for the current node. (Inherited from XmlReader.)
Public property XmlLang Gets the current xml:lang scope. (Overrides XmlReader.XmlLang.)
Public property XmlResolver Sets the XmlResolver used for resolving external document type definition (DTD) and schema location references. The XmlResolver is also used to handle any import or include elements found in XML Schema definition language (XSD) schemas.
Public property XmlSpace Gets the current xml:space scope. (Overrides XmlReader.XmlSpace.)
Top

  NameDescription
Public event ValidationEventHandler Sets an event handler for receiving information about document type definition (DTD), XML-Data Reduced (XDR) schema, and XML Schema definition language (XSD) schema validation errors.
Top

  NameDescription
Explicit interface implemetation Private method IDisposable.Dispose For a description of this member, see IDisposable.Dispose. (Inherited from XmlReader.)
Explicit interface implemetation Private method IXmlNamespaceResolver.GetNamespacesInScope Infrastructure. For a description of this member, see IXmlNamespaceResolver.GetNamespacesInScope.
Explicit interface implemetation Private method IXmlLineInfo.HasLineInfo Gets a value indicating whether the class can return line information.
Explicit interface implemetation Private method IXmlNamespaceResolver.LookupNamespace Infrastructure. For a description of this member, see IXmlNamespaceResolver.LookupNamespace.
Explicit interface implemetation Private method IXmlNamespaceResolver.LookupPrefix Infrastructure. For a description of this member, see IXmlNamespaceResolver.LookupPrefix.
Top
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft