XmlTextReader类

来源:互联网 发布:淘宝网电话人工服务 编辑:程序博客网 时间:2024/05/16 08:39

XmlTextReader 成员


公共构造函数

 名称说明Public method Supported by the .NET Compact FrameworkXmlTextReader已重载。初始化 XmlTextReader 的新实例。
受保护的构造函数

 名称说明Protected method Supported by the .NET Compact FrameworkXmlTextReader已重载。初始化 XmlTextReader 的新实例。页首
公共属性

 名称说明Public property Supported by the .NET Compact FrameworkAttributeCount已重写。获取当前节点上的属性数。Public property Supported by the .NET Compact FrameworkBaseURI已重写。获取当前节点的基 URI。Public property Supported by the .NET Compact FrameworkCanReadBinaryContent已重写。获取一个值,该值指示 XmlTextReader 是否实现二进制内容读取方法。Public property Supported by the .NET Compact FrameworkCanReadValueChunk已重写。获取一个值,该值指示 XmlTextReader 是否实现 ReadValueChunk 方法。Public property Supported by the .NET Compact FrameworkCanResolveEntity已重写。获取一个值,该值指示此读取器是否可以分析和解析实体。Public property Supported by the .NET Compact FrameworkDepth已重写。获取 XML 文档中当前节点的深度。Public property Supported by the .NET Compact FrameworkEncoding获取文档的编码方式。Public property Supported by the .NET Compact FrameworkEntityHandling获取或设置一个值,该值指定读取器如何处理实体。Public property Supported by the .NET Compact FrameworkEOF已重写。获取一个值,该值指示读取器是否定位在流的结尾。Public property Supported by the .NET Compact FrameworkHasAttributes 获取一个值,该值指示当前节点是否有任何属性。(从 XmlReader 继承。)Public property Supported by the .NET Compact FrameworkHasValue已重写。获取一个值,该值指示当前节点是否可以具有非 String.Empty 的 Value。Public property Supported by the .NET Compact FrameworkIsDefault已重写。获取一个值,该值指示当前节点是否是从 DTD 或架构中定义的默认值生成的属性。Public property Supported by the .NET Compact FrameworkIsEmptyElement已重写。获取一个值,该值指示当前节点是否为空元素(例如,<MyElement/>)。Public property Supported by the .NET Compact FrameworkItem 已重载。当在派生类中被重写时,获取此属性的值。(从 XmlReader 继承。)Public property Supported by the .NET Compact FrameworkLineNumber获取当前行号。Public property Supported by the .NET Compact FrameworkLinePosition获取当前行位置。Public property Supported by the .NET Compact FrameworkLocalName已重写。获取当前节点的本地名称。Public property Supported by the .NET Compact FrameworkName已重写。获取当前节点的限定名。Public property Supported by the .NET Compact FrameworkNamespaces获取或设置一个值,该值指示是否进行命名空间支持。Public property Supported by the .NET Compact FrameworkNamespaceURI已重写。获取读取器定位在的节点的命名空间 URI(采用 W3C 命名空间规范中定义的形式)。Public property Supported by the .NET Compact FrameworkNameTable已重写。获取与此实现关联的 XmlNameTable。Public property Supported by the .NET Compact FrameworkNodeType已重写。获取当前节点的类型。Public property Supported by the .NET Compact FrameworkNormalization获取或设置一个值,该值指示是否正常化空白和属性值。Public property Supported by the .NET Compact FrameworkPrefix已重写。获取与当前节点关联的命名空间前缀。Public propertyProhibitDtd获取或设置一个值,该值指示是否允许 DTD 处理。Public property Supported by the .NET Compact FrameworkQuoteChar已重写。获取用于括起属性节点值的引号字符。Public property Supported by the .NET Compact FrameworkReadState已重写。获取读取器的状态。Public property Supported by the .NET Compact FrameworkSchemaInfo 获取作为架构验证结果分配给当前节点的架构信息。(从 XmlReader 继承。)Public property Supported by the .NET Compact FrameworkSettings已重写。获取用于创建此 XmlTextReader 实例的 XmlReaderSettings 对象。Public property Supported by the .NET Compact FrameworkValue已重写。获取当前节点的文本值。Public property Supported by the .NET Compact FrameworkValueType 获取当前节点的公共语言运行库 (CLR) 类型。(从 XmlReader 继承。)Public property Supported by the .NET Compact FrameworkWhitespaceHandling获取或设置一个值,该值指定如何处理空白。Public property Supported by the .NET Compact FrameworkXmlLang已重写。获取当前 xml:lang 范围。Public property Supported by the .NET Compact FrameworkXmlResolver设置用于解析 DTD 引用的 XmlResolver。Public property Supported by the .NET Compact FrameworkXmlSpace已重写。获取当前 xml:space 范围。
公共方法


 名称说明Public method Supported by the .NET Compact FrameworkClose已重写。 将 ReadState 更改为 ClosedPublic method Static Supported by the .NET Compact FrameworkCreate 已重载。 创建一个新的 XmlReader 实例。 (从 XmlReader 继承。)Public method Supported by the .NET Compact FrameworkEquals 已重载。 确定两个 Object 实例是否相等。 (从 Object 继承。)Public method Supported by the .NET Compact FrameworkGetAttribute已重载。 已重写。 获取属性的值。Public method Supported by the .NET Compact FrameworkGetHashCode 用作特定类型的哈希函数。GetHashCode 适合在哈希算法和数据结构(如哈希表)中使用。 (从 Object继承。)Public method Supported by the .NET Compact FrameworkGetNamespacesInScope获取一个集合,该集合包含当前在范围内的所有命名空间。Public method Supported by the .NET Compact FrameworkGetRemainder获取已缓冲的 XML 剩余部分。Public method Supported by the .NET Compact FrameworkGetType 获取当前实例的 Type。 (从 Object 继承。)Public method Supported by the .NET Compact FrameworkHasLineInfo获取一个值,该值指示该类是否可返回行信息。Public method Static Supported by the .NET Compact FrameworkIsName 获取一个值,该值指示字符串参数是否是有效的 XML 名称。 (从 XmlReader 继承。)Public method Static Supported by the .NET Compact FrameworkIsNameToken 获取一个值,该值指示该字符串参数是否是有效的 XML 名称标记。 (从 XmlReader 继承。)Public method Supported by the .NET Compact FrameworkIsStartElement 已重载。 测试当前内容节点是否是开始标记。 (从 XmlReader 继承。)Public method Supported by the .NET Compact FrameworkLookupNamespace已重写。 解析当前元素的范围内的命名空间前缀。Public method Supported by the .NET Compact FrameworkMoveToAttribute已重载。 已重写。 移动到指定的属性。Public method Supported by the .NET Compact FrameworkMoveToContent 检查当前节点是否是内容(非空白文本、CDATAElementEndElementEntityReference 或EndEntity)节点。如果此节点不是内容节点,则读取器向前跳至下一个内容节点或文件结尾。它跳过以下类型的节点:ProcessingInstructionDocumentTypeCommentWhitespace 或SignificantWhitespace。 (从 XmlReader 继承。)Public method Supported by the .NET Compact FrameworkMoveToElement已重写。 移动到包含当前属性节点的元素。Public method Supported by the .NET Compact FrameworkMoveToFirstAttribute已重写。 移动到第一个属性。Public method Supported by the .NET Compact FrameworkMoveToNextAttribute已重写。 移动到下一个属性。Public method Supported by the .NET Compact FrameworkRead已重写。 从流中读取下一个节点。Public method Supported by the .NET Compact FrameworkReadAttributeValue已重写。 将属性值分析为一个或多个 TextEntityReference 或 EndEntity 节点。Public method Supported by the .NET Compact FrameworkReadBase64对 Base64 进行解码并返回解码的二进制字节。Public method Supported by the .NET Compact FrameworkReadBinHex对 BinHex 进行解码并返回解码后的二进制字节。Public method Supported by the .NET Compact FrameworkReadChars将元素的文本内容读入字符缓冲区。通过连续调用此方法,可以读取大的嵌入文本流。Public method Supported by the .NET Compact FrameworkReadContentAs 将内容作为指定类型的对象读取。 (从 XmlReader 继承。)Public method Supported by the .NET Compact FrameworkReadContentAsBase64已重写。 读取内容并返回 Base64 解码的二进制字节。Public method Supported by the .NET Compact FrameworkReadContentAsBinHex已重写。 读取内容并返回 BinHex 解码的二进制字节。Public method Supported by the .NET Compact FrameworkReadContentAsBoolean 将当前位置的文本内容作为 Boolean 读取。 (从 XmlReader 继承。)Public method Supported by the .NET Compact FrameworkReadContentAsDateTime 将当前位置的文本内容作为 DateTime 对象读取。 (从 XmlReader 继承。)Public method Supported by the .NET Compact FrameworkReadContentAsDecimal 将当前位置的文本内容作为 Decimal 对象读取。 (从 XmlReader 继承。)Public method Supported by the .NET Compact FrameworkReadContentAsDouble 将当前位置的文本内容作为双精度浮点数读取。 (从 XmlReader 继承。)Public method Supported by the .NET Compact FrameworkReadContentAsFloat 将当前位置的文本内容作为单精度浮点数读取。 (从 XmlReader 继承。)Public method Supported by the .NET Compact FrameworkReadContentAsInt 将当前位置的文本内容作为 32 位有符号整数读取。 (从 XmlReader 继承。)Public method Supported by the .NET Compact FrameworkReadContentAsLong 将当前位置的文本内容作为 64 位有符号整数读取。 (从 XmlReader 继承。)Public method Supported by the .NET Compact FrameworkReadContentAsObject 将当前位置的文本内容作为 Object 读取。 (从 XmlReader 继承。)Public method Supported by the .NET Compact FrameworkReadContentAsString 将当前位置的文本内容作为 String 对象读取。 (从 XmlReader 继承。)Public method Supported by the .NET Compact FrameworkReadElementContentAs 已重载。 读取当前元素,并将内容作为指定类型的对象返回。 (从 XmlReader 继承。)Public method Supported by the .NET Compact FrameworkReadElementContentAsBase64已重写。 读取元素并对 Base64 内容进行解码。Public method Supported by the .NET Compact FrameworkReadElementContentAsBinHex已重写。 读取元素并对 BinHex 内容进行解码。Public method Supported by the .NET Compact FrameworkReadElementContentAsBoolean 已重载。 将当前元素值作为 Boolean 对象读取。 (从 XmlReader 继承。)Public method Supported by the .NET Compact FrameworkReadElementContentAsDateTime 已重载。 读取当前元素并将内容作为 DateTime 对象返回。 (从 XmlReader 继承。)Public method Supported by the .NET Compact FrameworkReadElementContentAsDecimal 已重载。 将当前元素值作为 Decimal 对象读取。 (从 XmlReader 继承。)Public method Supported by the .NET Compact FrameworkReadElementContentAsDouble 已重载。 读取当前元素并将内容作为双精度浮点数返回。 (从 XmlReader 继承。)Public method Supported by the .NET Compact FrameworkReadElementContentAsFloat 已重载。 将当前元素值作为单精度浮点数读取。 (从 XmlReader 继承。)Public method Supported by the .NET Compact FrameworkReadElementContentAsInt 已重载。 读取当前元素并将内容作为 32 位有符号整数返回。 (从 XmlReader 继承。)Public method Supported by the .NET Compact FrameworkReadElementContentAsLong 已重载。 读取当前元素并将内容作为 64 位有符号整数返回。 (从 XmlReader 继承。)Public method Supported by the .NET Compact FrameworkReadElementContentAsObject 已重载。 读取当前元素并将内容作为 Object 返回。 (从 XmlReader 继承。)Public method Supported by the .NET Compact FrameworkReadElementContentAsString 已重载。 读取当前元素并将内容作为 String 对象返回。 (从 XmlReader 继承。)Public method Supported by the .NET Compact FrameworkReadElementString 已重载。 这是一个用于读取简单纯文本元素的 Helper 方法。 (从 XmlReader 继承。)Public method Supported by the .NET Compact FrameworkReadEndElement 检查当前内容节点是否为结束标记并将读取器推进到下一个节点。 (从 XmlReader 继承。)Public method Supported by the .NET Compact FrameworkReadInnerXml 当在派生类中被重写时,将所有内容(包括标记)当做字符串读取。 (从 XmlReader 继承。)Public method Supported by the .NET Compact FrameworkReadOuterXml 当在派生类中被重写时,读取表示该节点和所有它的子级的内容(包括标记)。 (从 XmlReader 继承。)Public method Supported by the .NET Compact FrameworkReadStartElement 已重载。 检查当前节点是否为元素并将读取器推进到下一个节点。 (从 XmlReader 继承。)Public methodReadString已重写。 将元素或文本节点的内容读取为一个字符串。Public method Supported by the .NET Compact FrameworkReadSubtree 返回新的 XmlReader 实例,此实例可用于读取当前节点及其所有子节点。 (从 XmlReader 继承。)Public method Supported by the .NET Compact FrameworkReadToDescendant 已重载。 让 XmlReader 前进到下一个匹配的子代元素。 (从 XmlReader 继承。)Public method Supported by the .NET Compact FrameworkReadToFollowing 已重载。 一直读取,直到找到命名元素。 (从 XmlReader 继承。)Public method Supported by the .NET Compact FrameworkReadToNextSibling 已重载。 让 XmlReader 前进到下一个匹配的同级元素。 (从 XmlReader 继承。)Public method Supported by the .NET Compact FrameworkReadValueChunk 读取嵌入在 XML 文档中的大量文本流。 (从 XmlReader 继承。)Public method Static Supported by the .NET Compact FrameworkReferenceEquals 确定指定的 Object 实例是否是相同的实例。 (从 Object 继承。)Public method Supported by the .NET Compact FrameworkResetState将读取器的状态重置为 ReadState.Initial。Public method Supported by the .NET Compact FrameworkResolveEntity已重写。 解析 EntityReference 节点的实体引用。Public method Supported by the .NET Compact FrameworkSkip已重写。 跳过当前节点的子级。Public method Supported by the .NET Compact FrameworkToString 返回表示当前 Object 的 String。 (从 Object 继承。)页首
受保护的方法

 名称说明Protected method Supported by the .NET Compact FrameworkDispose 释放由 XmlReader 占用的非托管资源,还可以另外再释放托管资源。 (从 XmlReader 继承。)Protected method Supported by the .NET Compact FrameworkFinalize 允许 Object 在“垃圾回收”回收 Object 之前尝试释放资源并执行其他清理操作。 (从 Object 继承。)Protected method Supported by the .NET Compact FrameworkMemberwiseClone 创建当前 Object 的浅表副本。 (从 Object 继承。)
显式接口实现

 名称说明Explicit interface implementation Method Supported by the .NET Compact FrameworkSystem.Xml.IXmlLineInfo.HasLineInfo Explicit interface implementation Method Supported by the .NET Compact FrameworkSystem.Xml.IXmlNamespaceResolver.GetNamespacesInScope有关此成员的说明,请参见 IXmlNamespaceResolver.GetNamespacesInScope。Explicit interface implementation Method Supported by the .NET Compact FrameworkSystem.Xml.IXmlNamespaceResolver.LookupNamespace有关此成员的说明,请参见 IXmlNamespaceResolver.LookupNamespace。Explicit interface implementation Method Supported by the .NET Compact FrameworkSystem.Xml.IXmlNamespaceResolver.LookupPrefix有关此成员的说明,请参见 IXmlNamespaceResolver.LookupPrefix。

XmlTextReader 构造函数

名称说明XmlTextReader ()初始化 XmlTextReader 的新实例。

由 .NET Compact Framework 支持。

XmlTextReader (Stream)使用指定的流初始化 XmlTextReader 类的新实例。

由 .NET Compact Framework 支持。

XmlTextReader (String)使用指定的文件初始化 XmlTextReader 类的新实例。

由 .NET Compact Framework 支持。

XmlTextReader (TextReader)用指定的 TextReader 初始化 XmlTextReader 类的新实例。

由 .NET Compact Framework 支持。

XmlTextReader (XmlNameTable)用指定的 XmlNameTable 初始化 XmlTextReader 类的新实例。

由 .NET Compact Framework 支持。

XmlTextReader (Stream, XmlNameTable)用指定的流和 XmlNameTable 初始化 XmlTextReader 类的新实例。

由 .NET Compact Framework 支持。

XmlTextReader (String, Stream)使用指定的 URL 和流初始化 XmlTextReader 类的新实例。

由 .NET Compact Framework 支持。

XmlTextReader (String, TextReader)使用指定的 URL 和 TextReader 初始化 XmlTextReader 类的新实例。

由 .NET Compact Framework 支持。

XmlTextReader (String, XmlNameTable)使用指定的文件和 XmlNameTable 初始化 XmlTextReader 类的新实例。

由 .NET Compact Framework 支持。

XmlTextReader (TextReader, XmlNameTable)使用指定的 TextReader 和 XmlNameTable 初始化 XmlTextReader 类的新实例。

由 .NET Compact Framework 支持。

XmlTextReader (Stream, XmlNodeType, XmlParserContext)用指定的流、XmlNodeType 和 XmlParserContext 初始化 XmlTextReader 类的新实例。

由 .NET Compact Framework 支持。

XmlTextReader (String, Stream, XmlNameTable)使用指定的 URL、流和 XmlNameTable 初始化 XmlTextReader 类的新实例。

由 .NET Compact Framework 支持。

XmlTextReader (String, TextReader, XmlNameTable)使用指定的 URL、TextReader 和 XmlNameTable 初始化 XmlTextReader 类的新实例。

由 .NET Compact Framework 支持。

XmlTextReader (String, XmlNodeType, XmlParserContext)使用指定的字符串、XmlNodeType 和 XmlParserContext 初始化 XmlTextReader 类的新实例。

由 .NET Compact Framework 支持。


原创粉丝点击