点击或拖拽改变大小

XmlParser 类

XML解析器
继承层次
SystemObject
  GISShare.XmlXmlParser

命名空间:  GISShare.Xml
程序集:  GISShare.Xml (在 GISShare.Xml.dll 中) 版本:1.0.0.1 (1.0.0.1)
语法
public class XmlParser

The XmlParser type exposes the following members.

构造函数
  名称说明
公共方法XmlParser(TextReader)
构造函数
公共方法XmlParser(String)
构造函数
Top
属性
  名称说明
公共属性DoESC
是否处理转义字符串,默认值:true(压缩、转换、存储等情况下,应该当设为false)
公共属性HasAttributes
存在属性值
公共属性KeyValueDictionary
键值对
公共属性MatchEntity
匹配实体
公共属性Name
当前的标记(节点名称,它随Token的变化而变化,例:Token为Text时,Name为文本。)
公共属性NameWithoutNamespace
在“Name”属性的基础上去除命名空间,只在ELEMENT节点上有效。(如:ogc:Name -> Name)
公共属性PartList
标签片段
公共属性TextTrim
移除空白符
公共属性Token
当前的Token值
Top
方法
  名称说明
公共方法GetAttribute
获取属性值
公共方法IdenticalName
相同的名字,只在ELEMENT节点上有效。
公共方法Next
下一个Token 注:返回 None 表示结束 或 异常结束
公共方法ReadText
读取节点的TEXT值 (即:<Tag>XXX</Tag>中的“XXX”,存在则返回有效的字符串,不存在则返回NULL。)
公共方法静态成员StringToXmlString
字符串转为XML字符串
公共方法静态成员XmlStringToString
XML字符串转为字符串
Top
参见