XslReader provides an efficient way to read results of an XSL transformation via an XmlReader API. Due to architectural and performance reasons the XslCompiledTransform class doesn't support transforming to an XmlReader as obsolete XslTransform class did and XslReader's goal is to supplement such functionality.

XslReader has been developed and contributed to the Mvp.Xml project by Sergey Dubinets (Microsoft XML Team).

The following tables list the members exposed by XslReader.

Public Constructors

  Name Description
Public method XslReader Overloaded. Creates new XslReader instance with given XslCompiledTransform, mode (multithreaded/singlethreaded) and initial buffer size. The buffer will be expanded if necessary to be able to store any element start tag with all its attributes.
Top

Public Properties

  Name Description
Public property AttributeCount Overidden. See AttributeCount.
Public property BaseURI Overidden. See 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 method. (inherited from XmlReader)
Public property CanResolveEntity Gets a value indicating whether this reader can parse and resolve entities. (inherited from XmlReader)
Public property Depth Overidden. See Depth.
Public property EOF Overidden. See EOF.
Public property HasAttributes Gets a value indicating whether the current node has any attributes. (inherited from XmlReader)
Public property HasValue Overidden. See HasValue.
Public property InitialBufferSize Initial buffer size. The buffer will be expanded if necessary to be able to store any element start tag with all its attributes.
Public property IsDefault When overridden in a derived class, gets a value indicating whether the current node is an attribute that was generated from the default value defined in the DTD or schema. (inherited from XmlReader)
Public property IsEmptyElement Overidden. See IsEmptyElement.
Public property Item Overloaded. When overridden in a derived class, gets the value of the attribute with the specified index. (inherited from XmlReader)
Public property LocalName Overidden. See LocalName.
Public property Name When overridden in a derived class, gets the qualified name of the current node. (inherited from XmlReader)
Public property NamespaceURI Overidden. See NamespaceURI.
Public property NameTable Overidden. See NameTable.
Public property NodeType Overidden. See NodeType.
Public property Prefix Overidden. See Prefix.
Public property QuoteChar When overridden in a derived class, gets the quotation mark character used to enclose the value of an attribute node. (inherited from XmlReader)
Public property ReadState Overidden. See 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 Value Overidden. See Value.
Public property ValueType Gets The Common Language Runtime (CLR) type for the current node. (inherited from XmlReader)
Public property XmlLang Overidden. See XmlLang.
Public property XmlSpace Overidden. See XmlSpace.
Public property XslCompiledTransform Loaded XslCompiledTransform object, which is used to run XSL transformations. You can reuse XslReader for running another transformation by replacing XslCompiledTransform object.
Top

Public Methods

  Name Description
Public method Close Overidden. See Close.
Public method Equals Determines whether the specified Object is equal to the current Object. (inherited from Object)
Public method GetAttribute Overloaded. See GetAttribute.
Public method GetHashCode Serves as a hash function for a particular type. GetHashCode is suitable for use in hashing algorithms and data structures like a hash table. (inherited from Object)
Public method GetType Gets the Type of the current instance. (inherited from Object)
Public method IsStartElement Overloaded. Calls MoveToContent and tests if the current content node is a start tag or empty element tag. (inherited from XmlReader)
Public method LookupNamespace Overidden. See LookupNamespace.
Public method MoveToAttribute Overloaded. See Close.
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 Overidden. See MoveToElement.
Public method MoveToFirstAttribute Overidden. See MoveToFirstAttribute.
Public method MoveToNextAttribute Overidden. See MoveToNextAttribute.
Public method Read Overidden. See Read.
Public method ReadAttributeValue Overidden. See 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 Overloaded. 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 Overloaded. Reads the current element and returns the contents as a Boolean object. (inherited from XmlReader)
Public method ReadElementContentAsDateTime Overloaded. Reads the current element and returns the contents as a DateTime object. (inherited from XmlReader)
Public method ReadElementContentAsDecimal Overloaded. Reads the current element and returns the contents as a Decimal object. (inherited from XmlReader)
Public method ReadElementContentAsDouble Overloaded. Reads the current element and returns the contents as a double-precision floating-point number. (inherited from XmlReader)
Public method ReadElementContentAsFloat Overloaded. Reads the current element and returns the contents as single-precision floating-point number. (inherited from XmlReader)
Public method ReadElementContentAsInt Overloaded. Reads the current element and returns the contents as a 32-bit signed integer. (inherited from XmlReader)
Public method ReadElementContentAsLong Overloaded. Reads the current element and returns the contents as a 64-bit signed integer. (inherited from XmlReader)
Public method ReadElementContentAsObject Overloaded. Reads the current element and returns the contents as an Object. (inherited from XmlReader)
Public method ReadElementContentAsString Overloaded. Reads the current element and returns the contents as a String object. (inherited from XmlReader)
Public method ReadElementString Overloaded. Reads 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 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. (inherited from XmlReader)
Public method ReadString When overridden in a derived class, reads the contents of an element or text node as a string. (inherited from XmlReader)
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 descendant element with the specified qualified name. (inherited from XmlReader)
Public method ReadToFollowing Overloaded. Reads until an element with the specified qualified name is found. (inherited from XmlReader)
Public method ReadToNextSibling Overloaded. Advances the XmlReader to the next sibling element with the specified qualified name. (inherited from XmlReader)
Public method ReadValueChunk Reads large streams of text embedded in an XML document. (inherited from XmlReader)
Public method ResolveEntity Overidden. See ResolveEntity.
Public method Skip Skips the children of the current node. (inherited from XmlReader)
Public method StartTransform Starts XSL transformation of given XmlInput object with specified XsltArgumentList. After this method returns you can read the transformation output out of XslReader object via standard XmlReader methods such as Read() or MoveXXX().
Public method ToString Returns a String that represents the current Object. (inherited from Object)
Top

See Also