XmlTextReader类

XmlTextReader 成员


公共构造函数

名称 说明
Public methodSupported by the .NET Compact Framework XmlTextReader 已重载。初始化XmlTextReader的新实例。

名称 说明
Protected methodSupported by the .NET Compact Framework XmlTextReader 已重载。初始化XmlTextReader的新实例。
页首
名称 说明
Public propertySupported by the .NET Compact Framework AttributeCount 已重写。获取当前节点上的属性数。
Public propertySupported by the .NET Compact Framework BaseURI 已重写。获取当前节点的基 URI。
Public propertySupported by the .NET Compact Framework CanReadBinaryContent 已重写。获取一个值,该值指示XmlTextReader是否实现二进制内容读取方法。
Public propertySupported by the .NET Compact Framework CanReadValueChunk 已重写。获取一个值,该值指示XmlTextReader是否实现ReadValueChunk方法。
Public propertySupported by the .NET Compact Framework CanResolveEntity 已重写。获取一个值,该值指示此读取器是否可以分析和解析实体。
Public propertySupported by the .NET Compact Framework Depth 已重写。获取 XML 文档中当前节点的深度。
Public propertySupported by the .NET Compact Framework Encoding 获取文档的编码方式。
Public propertySupported by the .NET Compact Framework EntityHandling 获取或设置一个值,该值指定读取器如何处理实体。
Public propertySupported by the .NET Compact Framework EOF 已重写。获取一个值,该值指示读取器是否定位在流的结尾。
Public propertySupported by the .NET Compact Framework HasAttributes 获取一个值,该值指示当前节点是否有任何属性。(从XmlReader继承。)
Public propertySupported by the .NET Compact Framework HasValue 已重写。获取一个值,该值指示当前节点是否可以具有非String.EmptyValue
Public propertySupported by the .NET Compact Framework IsDefault 已重写。获取一个值,该值指示当前节点是否是从 DTD 或架构中定义的默认值生成的属性。
Public propertySupported by the .NET Compact Framework IsEmptyElement 已重写。获取一个值,该值指示当前节点是否为空元素(例如,<MyElement/>)。
Public propertySupported by the .NET Compact Framework Item 已重载。当在派生类中被重写时,获取此属性的值。(从XmlReader继承。)
Public propertySupported by the .NET Compact Framework LineNumber 获取当前行号。
Public propertySupported by the .NET Compact Framework LinePosition 获取当前行位置。
Public propertySupported by the .NET Compact Framework LocalName 已重写。获取当前节点的本地名称。
Public propertySupported by the .NET Compact Framework Name 已重写。获取当前节点的限定名。
Public propertySupported by the .NET Compact Framework Namespaces 获取或设置一个值,该值指示是否进行命名空间支持。
Public propertySupported by the .NET Compact Framework NamespaceURI 已重写。获取读取器定位在的节点的命名空间 URI(采用 W3C 命名空间规范中定义的形式)。
Public propertySupported by the .NET Compact Framework NameTable 已重写。获取与此实现关联的XmlNameTable
Public propertySupported by the .NET Compact Framework NodeType 已重写。获取当前节点的类型。
Public propertySupported by the .NET Compact Framework Normalization 获取或设置一个值,该值指示是否正常化空白和属性值。
Public propertySupported by the .NET Compact Framework Prefix 已重写。获取与当前节点关联的命名空间前缀。
Public property ProhibitDtd 获取或设置一个值,该值指示是否允许 DTD 处理。
Public propertySupported by the .NET Compact Framework QuoteChar 已重写。获取用于括起属性节点值的引号字符。
Public propertySupported by the .NET Compact Framework ReadState 已重写。获取读取器的状态。
Public propertySupported by the .NET Compact Framework SchemaInfo 获取作为架构验证结果分配给当前节点的架构信息。(从XmlReader继承。)
Public propertySupported by the .NET Compact Framework Settings 已重写。获取用于创建此XmlTextReader实例的XmlReaderSettings对象。
Public propertySupported by the .NET Compact Framework Value 已重写。获取当前节点的文本值。
Public propertySupported by the .NET Compact Framework ValueType 获取当前节点的公共语言运行库 (CLR) 类型。(从XmlReader继承。)
Public propertySupported by the .NET Compact Framework WhitespaceHandling 获取或设置一个值,该值指定如何处理空白。
Public propertySupported by the .NET Compact Framework XmlLang 已重写。获取当前xml:lang范围。
Public propertySupported by the .NET Compact Framework XmlResolver 设置用于解析 DTD 引用的XmlResolver
Public propertySupported by the .NET Compact Framework XmlSpace 已重写。获取当前xml:space范围。


名称 说明
Public methodSupported by the .NET Compact Framework Close 已重写。 将ReadState更改为Closed
Public methodStaticSupported by the .NET Compact Framework Create 已重载。 创建一个新的XmlReader实例。 (从XmlReader继承。)
Public methodSupported by the .NET Compact Framework Equals 已重载。 确定两个Object实例是否相等。 (从Object继承。)
Public methodSupported by the .NET Compact Framework GetAttribute 已重载。 已重写。 获取属性的值。
Public methodSupported by the .NET Compact Framework GetHashCode 用作特定类型的哈希函数。GetHashCode适合在哈希算法和数据结构(如哈希表)中使用。 (从Object继承。)
Public methodSupported by the .NET Compact Framework GetNamespacesInScope 获取一个集合,该集合包含当前在范围内的所有命名空间。
Public methodSupported by the .NET Compact Framework GetRemainder 获取已缓冲的 XML 剩余部分。
Public methodSupported by the .NET Compact Framework GetType 获取当前实例的Type。 (从Object继承。)
Public methodSupported by the .NET Compact Framework HasLineInfo 获取一个值,该值指示该类是否可返回行信息。
Public methodStaticSupported by the .NET Compact Framework IsName 获取一个值,该值指示字符串参数是否是有效的 XML 名称。 (从XmlReader继承。)
Public methodStaticSupported by the .NET Compact Framework IsNameToken 获取一个值,该值指示该字符串参数是否是有效的 XML 名称标记。 (从XmlReader继承。)
Public methodSupported by the .NET Compact Framework IsStartElement 已重载。 测试当前内容节点是否是开始标记。 (从XmlReader继承。)
Public methodSupported by the .NET Compact Framework LookupNamespace 已重写。 解析当前元素的范围内的命名空间前缀。
Public methodSupported by the .NET Compact Framework MoveToAttribute 已重载。 已重写。 移动到指定的属性。
Public methodSupported by the .NET Compact Framework MoveToContent 检查当前节点是否是内容(非空白文本、CDATAElementEndElementEntityReferenceEndEntity)节点。如果此节点不是内容节点,则读取器向前跳至下一个内容节点或文件结尾。它跳过以下类型的节点:ProcessingInstructionDocumentTypeCommentWhitespaceSignificantWhitespace。 (从XmlReader继承。)
Public methodSupported by the .NET Compact Framework MoveToElement 已重写。 移动到包含当前属性节点的元素。
Public methodSupported by the .NET Compact Framework MoveToFirstAttribute 已重写。 移动到第一个属性。
Public methodSupported by the .NET Compact Framework MoveToNextAttribute 已重写。 移动到下一个属性。
Public methodSupported by the .NET Compact Framework Read 已重写。 从流中读取下一个节点。
Public methodSupported by the .NET Compact Framework ReadAttributeValue 已重写。 将属性值分析为一个或多个TextEntityReferenceEndEntity节点。
Public methodSupported by the .NET Compact Framework ReadBase64 对 Base64 进行解码并返回解码的二进制字节。
Public methodSupported by the .NET Compact Framework ReadBinHex BinHex进行解码并返回解码后的二进制字节。
Public methodSupported by the .NET Compact Framework ReadChars 将元素的文本内容读入字符缓冲区。通过连续调用此方法,可以读取大的嵌入文本流。
Public methodSupported by the .NET Compact Framework ReadContentAs 将内容作为指定类型的对象读取。 (从XmlReader继承。)
Public methodSupported by the .NET Compact Framework ReadContentAsBase64 已重写。 读取内容并返回Base64解码的二进制字节。
Public methodSupported by the .NET Compact Framework ReadContentAsBinHex 已重写。 读取内容并返回BinHex解码的二进制字节。
Public methodSupported by the .NET Compact Framework ReadContentAsBoolean 将当前位置的文本内容作为Boolean读取。 (从XmlReader继承。)
Public methodSupported by the .NET Compact Framework ReadContentAsDateTime 将当前位置的文本内容作为DateTime对象读取。 (从XmlReader继承。)
Public methodSupported by the .NET Compact Framework ReadContentAsDecimal 将当前位置的文本内容作为Decimal对象读取。 (从XmlReader继承。)
Public methodSupported by the .NET Compact Framework ReadContentAsDouble 将当前位置的文本内容作为双精度浮点数读取。 (从XmlReader继承。)
Public methodSupported by the .NET Compact Framework ReadContentAsFloat 将当前位置的文本内容作为单精度浮点数读取。 (从XmlReader继承。)
Public methodSupported by the .NET Compact Framework ReadContentAsInt 将当前位置的文本内容作为 32 位有符号整数读取。 (从XmlReader继承。)
Public methodSupported by the .NET Compact Framework ReadContentAsLong 将当前位置的文本内容作为 64 位有符号整数读取。 (从XmlReader继承。)
Public methodSupported by the .NET Compact Framework ReadContentAsObject 将当前位置的文本内容作为Object读取。 (从XmlReader继承。)
Public methodSupported by the .NET Compact Framework ReadContentAsString 将当前位置的文本内容作为String对象读取。 (从XmlReader继承。)
Public methodSupported by the .NET Compact Framework ReadElementContentAs 已重载。 读取当前元素,并将内容作为指定类型的对象返回。 (从XmlReader继承。)
Public methodSupported by the .NET Compact Framework ReadElementContentAsBase64 已重写。 读取元素并对 Base64 内容进行解码。
Public methodSupported by the .NET Compact Framework ReadElementContentAsBinHex 已重写。 读取元素并对BinHex内容进行解码。
Public methodSupported by the .NET Compact Framework ReadElementContentAsBoolean 已重载。 将当前元素值作为Boolean对象读取。 (从XmlReader继承。)
Public methodSupported by the .NET Compact Framework ReadElementContentAsDateTime 已重载。 读取当前元素并将内容作为DateTime对象返回。 (从XmlReader继承。)
Public methodSupported by the .NET Compact Framework ReadElementContentAsDecimal 已重载。 将当前元素值作为Decimal对象读取。 (从XmlReader继承。)
Public methodSupported by the .NET Compact Framework ReadElementContentAsDouble 已重载。 读取当前元素并将内容作为双精度浮点数返回。 (从XmlReader继承。)
Public methodSupported by the .NET Compact Framework ReadElementContentAsFloat 已重载。 将当前元素值作为单精度浮点数读取。 (从XmlReader继承。)
Public methodSupported by the .NET Compact Framework ReadElementContentAsInt 已重载。 读取当前元素并将内容作为 32 位有符号整数返回。 (从XmlReader继承。)
Public methodSupported by the .NET Compact Framework ReadElementContentAsLong 已重载。 读取当前元素并将内容作为 64 位有符号整数返回。 (从XmlReader继承。)
Public methodSupported by the .NET Compact Framework ReadElementContentAsObject 已重载。 读取当前元素并将内容作为Object返回。 (从XmlReader继承。)
Public methodSupported by the .NET Compact Framework ReadElementContentAsString 已重载。 读取当前元素并将内容作为String对象返回。 (从XmlReader继承。)
Public methodSupported by the .NET Compact Framework ReadElementString 已重载。 这是一个用于读取简单纯文本元素的 Helper 方法。 (从XmlReader继承。)
Public methodSupported by the .NET Compact Framework ReadEndElement 检查当前内容节点是否为结束标记并将读取器推进到下一个节点。 (从XmlReader继承。)
Public methodSupported by the .NET Compact Framework ReadInnerXml 当在派生类中被重写时,将所有内容(包括标记)当做字符串读取。 (从XmlReader继承。)
Public methodSupported by the .NET Compact Framework ReadOuterXml 当在派生类中被重写时,读取表示该节点和所有它的子级的内容(包括标记)。 (从XmlReader继承。)
Public methodSupported by the .NET Compact Framework ReadStartElement 已重载。 检查当前节点是否为元素并将读取器推进到下一个节点。 (从XmlReader继承。)
Public method ReadString 已重写。 将元素或文本节点的内容读取为一个字符串。
Public methodSupported by the .NET Compact Framework ReadSubtree 返回新的XmlReader实例,此实例可用于读取当前节点及其所有子节点。 (从XmlReader继承。)
Public methodSupported by the .NET Compact Framework ReadToDescendant 已重载。 让XmlReader前进到下一个匹配的子代元素。 (从XmlReader继承。)
Public methodSupported by the .NET Compact Framework ReadToFollowing 已重载。 一直读取,直到找到命名元素。 (从XmlReader继承。)
Public methodSupported by the .NET Compact Framework ReadToNextSibling 已重载。 让XmlReader前进到下一个匹配的同级元素。 (从XmlReader继承。)
Public methodSupported by the .NET Compact Framework ReadValueChunk 读取嵌入在 XML 文档中的大量文本流。 (从XmlReader继承。)
Public methodStaticSupported by the .NET Compact Framework ReferenceEquals 确定指定的Object实例是否是相同的实例。 (从Object继承。)
Public methodSupported by the .NET Compact Framework ResetState 将读取器的状态重置为 ReadState.Initial。
Public methodSupported by the .NET Compact Framework ResolveEntity 已重写。 解析EntityReference节点的实体引用。
Public methodSupported by the .NET Compact Framework Skip 已重写。 跳过当前节点的子级。
Public methodSupported by the .NET Compact Framework ToString 返回表示当前ObjectString。 (从Object继承。)
页首
名称 说明
Protected methodSupported by the .NET Compact Framework Dispose 释放由XmlReader占用的非托管资源,还可以另外再释放托管资源。 (从XmlReader继承。)
Protected methodSupported by the .NET Compact Framework Finalize 允许Object在“垃圾回收”回收Object之前尝试释放资源并执行其他清理操作。 (从Object继承。)
Protected methodSupported by the .NET Compact Framework MemberwiseClone 创建当前Object的浅表副本。 (从Object继承。)


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) 使用指定的TextReaderXmlNameTable初始化XmlTextReader类的新实例。

由 .NET Compact Framework 支持。

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

由 .NET Compact Framework 支持。

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

由 .NET Compact Framework 支持。

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

由 .NET Compact Framework 支持。

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

由 .NET Compact Framework 支持。


  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值