///When overridden in a derived class, gets the value of the attribute with the specified <see cref="P:System.Xml.XmlReader.Name"></see>.
///</summary>
///
///<returns>
///The value of the specified attribute. If the attribute is not found, null is returned.
///</returns>
///
///<param name="name">The qualified name of the attribute. </param>
publicoverridestringGetAttribute(stringname)
publicoverridestringGetAttribute(stringname)
{
{
thrownewNotImplementedException();
thrownewNotImplementedException();
}
}
///<summary>
///When overridden in a derived class, gets the value of the attribute with the specified <see cref="P:System.Xml.XmlReader.LocalName"></see> and <see cref="P:System.Xml.XmlReader.NamespaceURI"></see>.
///</summary>
///
///<returns>
///The value of the specified attribute. If the attribute is not found, null is returned. This method does not move the reader.
///</returns>
///
///<param name="namespaceURI">The namespace URI of the attribute. </param>
///<param name="name">The local name of the attribute. </param>
///When overridden in a derived class, gets the value of the attribute with the specified index.
///</summary>
///
///<returns>
///The value of the specified attribute. This method does not move the reader.
///</returns>
///
///<param name="i">The index of the attribute. The index is zero-based. (The first attribute has index 0.) </param>
publicoverridestringGetAttribute(inti)
publicoverridestringGetAttribute(inti)
{
{
thrownewNotImplementedException();
thrownewNotImplementedException();
}
}
///<summary>
///When overridden in a derived class, moves to the attribute with the specified <see cref="P:System.Xml.XmlReader.Name"></see>.
///</summary>
///
///<returns>
///true if the attribute is found; otherwise, false. If false, the reader's position does not change.
///</returns>
///
///<param name="name">The qualified name of the attribute. </param>
publicoverrideboolMoveToAttribute(stringname)
publicoverrideboolMoveToAttribute(stringname)
{
{
thrownewNotImplementedException();
thrownewNotImplementedException();
}
}
///<summary>
///When overridden in a derived class, moves to the attribute with the specified <see cref="P:System.Xml.XmlReader.LocalName"></see> and <see cref="P:System.Xml.XmlReader.NamespaceURI"></see>.
///</summary>
///
///<returns>
///true if the attribute is found; otherwise, false. If false, the reader's position does not change.
///</returns>
///
///<param name="name">The local name of the attribute. </param>
///<param name="ns">The namespace URI of the attribute. </param>
///When overridden in a derived class, moves to the element that contains the current attribute node.
///</summary>
///
///<returns>
///true if the reader is positioned on an attribute (the reader moves to the element that owns the attribute); false if the reader is not positioned on an attribute (the position of the reader does not change).
///When overridden in a derived class, parses the attribute value into one or more Text, EntityReference, or EndEntity nodes.
///</summary>
///
///<returns>
///true if there are nodes to return.false if the reader is not positioned on an attribute node when the initial call is made or if all the attribute values have been read.An empty attribute, such as, misc="", returns true with a single node with a value of String.Empty.
///When overridden in a derived class, resolves the entity reference for EntityReference nodes.
///</summary>
///
///<exception cref="T:System.InvalidOperationException">The reader is not positioned on an EntityReference node; this implementation of the reader cannot resolve entities (<see cref="P:System.Xml.XmlReader.CanResolveEntity"></see> returns false). </exception>
publicoverridevoidResolveEntity()
publicoverridevoidResolveEntity()
{
{
thrownewNotImplementedException();
thrownewNotImplementedException();
}
}
///<summary>
///When overridden in a derived class, gets the type of the current node.
///</summary>
///
///<returns>
///One of the <see cref="T:System.Xml.XmlNodeType"></see> values representing the type of the current node.
///</returns>
///
publicoverrideXmlNodeTypeNodeType
publicoverrideXmlNodeTypeNodeType
{
{
get
get{
{
if(intoAttribute)returnXmlNodeType.Text;
if(intoAttribute)returnXmlNodeType.Text;
returnthis.CurrentNode.NodeType;
returnthis.CurrentNode.NodeType;
}
}
}
}
///<summary>
///When overridden in a derived class, gets the local name of the current node.
///</summary>
///
///<returns>
///The name of the current node with the prefix removed. For example, LocalName is book for the element <bk:book>.For node types that do not have a name (like Text, Comment, and so on), this property returns String.Empty.
///When overridden in a derived class, gets the namespace URI (as defined in the W3C Namespace specification) of the node on which the reader is positioned.
///</summary>
///<returns>
///The namespace URI of the current node; otherwise an empty string.
///When overridden in a derived class, gets the text value of the current node.
///</summary>
///<returns>
///The value returned depends on the <see cref="P:System.Xml.XmlReader.NodeType"></see> of the node. The following table lists node types that have a value to return. All other node types return String.Empty.Node type Value AttributeThe value of the attribute. CDATAThe content of the CDATA section. CommentThe content of the comment. DocumentTypeThe internal subset. ProcessingInstructionThe entire content, excluding the target. SignificantWhitespaceThe white space between markup in a mixed content model. TextThe content of the text node. WhitespaceThe white space between markup. XmlDeclarationThe content of the declaration.
///When overridden in a derived class, gets the depth of the current node in the XML document.
///</summary>
///<returns>
///The depth of the current node in the XML document.
///</returns>
publicoverrideintDepth
{
get{returnthis.readingElements.Count;}
}
///<summary>
publicoverridestringBaseURI=>string.Empty;
///When overridden in a derived class, gets the base URI of the current node.
///</summary>
///<returns>
///The base URI of the current node.
///</returns>
publicoverridestringBaseURI
{
get{returnString.Empty;}
}
///<summary>
publicoverrideboolIsEmptyElement=>false;
///When overridden in a derived class, gets a value indicating whether the current node is an empty element (for example, <MyElement/>).
///</summary>
publicoverrideboolEOF=>_eof;
///<returns>
///true if the current node is an element (<see cref="P:System.Xml.XmlReader.NodeType"></see> equals XmlNodeType.Element) that ends with />; otherwise, false.
///</returns>
publicoverrideboolIsEmptyElement
{
get{returnfalse;}
}
///<summary>
///When overridden in a derived class, gets the number of attributes on the current node.
///</summary>
///<returns>
///The number of attributes on the current node.
///</returns>
publicoverrideintAttributeCount{
publicoverrideintAttributeCount{
get{thrownewNotImplementedException();}
get{thrownewNotImplementedException();}
}
}
///<summary>
///When overridden in a derived class, gets a value indicating whether the reader is positioned at the end of the stream.
///</summary>
///<returns>
///true if the reader is positioned at the end of the stream; otherwise, false.
///</returns>
publicoverrideboolEOF{
get{return_eof;}
}
///<summary>
///When overridden in a derived class, gets the state of the reader.
///</summary>
///<returns>
///One of the <see cref="T:System.Xml.ReadState"></see> values.
///</returns>
publicoverrideReadStateReadState{
publicoverrideReadStateReadState{
get{
get{
if(!initialized)
if(!initialized)
returnReadState.Initial;
returnReadState.Initial;
elseif(reader==null)
if(reader==null)
returnReadState.Closed;
returnReadState.Closed;
elseif(this.EOF)
if(this.EOF)
returnReadState.EndOfFile;
returnReadState.EndOfFile;
else
returnReadState.Interactive;
returnReadState.Interactive;
}
}
}
}
publicList<XmlPIMapping>Mappings
publicoverrideXmlNameTableNameTable=>_nameTable;
{
get{return_mappings;}
}
///<summary>
///When overridden in a derived class, gets the <see cref="T:System.Xml.XmlNameTable"></see> associated with this implementation.
///</summary>
///<returns>
///The XmlNameTable enabling you to get the atomized version of a string within the node.
///</returns>
publicoverrideXmlNameTableNameTable
{
get{return_nameTable;}
}
#region IXmlNamespaceResolver Members
#region IXmlNamespaceResolver Members
///<summary>
///Gets a collection of defined prefix-namespace Mappings that are currently in scope.
///</summary>
///
///<returns>
///An <see cref="T:System.Collections.IDictionary"></see> that contains the current in-scope namespaces.
///</returns>
///
///<param name="scope">An <see cref="T:System.Xml.XmlNamespaceScope"></see> value that specifies the type of namespace nodes to return.</param>