使用 IntraWeb (31) - IntraWeb 的 Xml 操作使用的是 NativeXml

在 IWNativeXml 单元. 知道了这个, 以后在其他 Delphi 程序中也可以直接 Uses IWNativeXml 了.


TNativeXml (IWNativeXml.TNativeXml

property AbortParsing: Boolean
property BinaryEncoding: TBinaryEncodingType
property CommentString: UTF8String
property DropCommentsOnParse: Boolean
property EncodingString: UTF8String
property ExternalEncoding: TStringEncodingType
property FloatAllowScientific: Boolean
property FloatSignificantDigits: Integer
property IndentString: UTF8String
property Root: TXmlNode
property RootNodeList: TXmlNode
property StyleSheetNode: TXmlNode
property UseFullNodes: Boolean
property Utf8Encoded: Boolean
property VersionString: UTF8String
property WriteOnDefault: Boolean
property XmlFormat: TXmlFormatType
property ParserWarnings: Boolean
property EntityByName[AName: UTF8String]: UTF8String

property OnNodeCompare: TXmlNodeCompareEvent
property OnNodeNew: TXmlNodeEvent
property OnNodeLoaded: TXmlNodeEvent
property OnProgress: TXmlProgressEvent
property OnUnicodeLoss: TNotifyEvent

constructor Create
constructor CreateName(const ARootName: UTF8String)
class destructor Destroy
procedure Assign(Source: TPersistent)
procedure Clear
function IsEmpty: Boolean
procedure LoadFromStream(Stream: TStream)
procedure LoadFromFile(const AFileName: string)
procedure ReadFromString(const AValue: UTF8String)
procedure ResolveEntityReferences
procedure SaveToStream(Stream: TStream)
procedure SaveToFile(const AFileName: string)
function WriteToString: UTF8String
function GetEntityByName(AName: UTF8String): UTF8String

TXmlNode (IWNativeXml.TXmlNode

property AttributeCount: Integer
property BinaryEncoding: TBinaryEncodingType
property BinaryString: RawByteString
property CascadedName: UTF8String
property Document: TNativeXml
property ElementType: TXmlElementType
property FullPath: UTF8String
property Name: UTF8String
property Parent: TXmlNode
property NodeCount: Integer
property Tag: Integer
property TotalNodeCount: Integer
property TreeDepth: Integer
property ValueAsBool: Boolean
property ValueAsDateTime: TDateTime
property ValueAsInt64: Int64
property ValueAsInteger: Integer
property ValueAsFloat: Double
property ValueAsString: UTF8String
property ValueAsUnicodeString: string
property ValueDirect: UTF8String
property WriteOnDefault: Boolean

property AttributeByName[const AName: UTF8String]: UTF8String
property AttributeByNameWide[const AName: UTF8String]: string
property AttributeName[Index: Integer]: UTF8String
property AttributePair[Index: Integer]: UTF8String
property AttributeValue[Index: Integer]: UTF8String
property AttributeValueAsUnicodeString[Index: Integer]: string
property AttributeValueAsInteger[Index: Integer]: Integer
property AttributeValueDirect[Index: Integer]: UTF8String
property Nodes[Index: Integer]: TXmlNode

constructor Create(ADocument: TNativeXml)
constructor CreateName(ADocument: TNativeXml; const AName: UTF8String)
constructor CreateNameValue(ADocument: TNativeXml; const AName: UTF8String; const AValue: UTF8String)
constructor CreateNameValue(ADocument: TNativeXml; const AName: string; const AValue: string)
constructor CreateType(ADocument: TNativeXml; AType: TXmlElementType)
procedure Assign(Source: TPersistent)
procedure Delete
procedure DeleteEmptyNodes
class destructor Destroy
procedure AttributeAdd(const AName: UTF8String; AValue: Integer)
procedure AttributeAdd(const AName: UTF8String; const AValue: UTF8String)
procedure AttributeDelete(Index: Integer)
procedure AttributeExchange(Index1: Integer; Index2: Integer)
function AttributeIndexByname(const AName: UTF8String): Integer
procedure AttributesClear
procedure BufferRead(var Buffer; Count: Integer)
procedure BufferWrite(const Buffer; Count: Integer)
function BufferLength: Integer
procedure Clear
function FindNode(const NodeName: UTF8String): TXmlNode
procedure FindNodes(const NodeName: UTF8String; const AList: TList)
function FromAnsiString(const s: AnsiString): UTF8String
function FromUnicodeString(const W: string): UTF8String
function HasAttribute(const AName: UTF8String): Boolean
function IndexInParent: Integer
function IsClear: Boolean
function IsEmpty: Boolean
function IsEqualTo(ANode: TXmlNode; Options: TXmlCompareOptions; MismatchNodes: TList): Boolean
function NodeAdd(ANode: TXmlNode): Integer
function NodeByAttributeValue(const NodeName: UTF8String; const AttribName: UTF8String; const AttribValue: UTF8String; ShouldRecurse: Boolean): TXmlNode
function NodeByElementType(ElementType: TXmlElementType): TXmlNode
function NodeByName(const AName: UTF8String): TXmlNode
procedure NodeDelete(Index: Integer)
procedure NodeExchange(Index1: Integer; Index2: Integer)
function NodeExtract(ANode: TXmlNode): TXmlNode
function NodeFindOrCreate(const AName: UTF8String): TXmlNode
function NodeIndexByName(const AName: UTF8String): Integer
function NodeIndexByNameFrom(const AName: UTF8String; AFrom: Integer): Integer
function NodeIndexOf(ANode: TXmlNode): Integer
procedure NodeInsert(Index: Integer; ANode: TXmlNode)
function NodeNew(const AName: UTF8String): TXmlNode
function NodeNewAtIndex(Index: Integer; const AName: UTF8String): TXmlNode
function NodeRemove(ANode: TXmlNode): Integer
procedure NodesClear
procedure NodesByName(const AName: UTF8String; const AList: TList)

使用 IntraWeb (31) - IntraWeb 的 Xml 操作使用的是 NativeXml,布布扣,bubuko.com

时间: 2024-11-04 10:56:04

使用 IntraWeb (31) - IntraWeb 的 Xml 操作使用的是 NativeXml的相关文章

c#xml操作

简单的xml操作--解析技能xml xml文件 <skills> <skill> <id>1</id> <name lang="cn">大荒囚天指</name> <demage>100</demage> </skill> <skill> <id>2</id> <name lang="en">绝对零度</na

XML操作

XML: XML 指可扩展标记语言 XML 被设计用来传输和存储数据. XML 被设计用来结构化.存储以及传输信息. xml文档展示: -----------------------------xml文档 <?xml version="1.0" encoding="ISO-8859-1"?> <note> <to>George</to> <from>John</from> <heading

C#对一个XML操作的实用类

using System; using System.Collections.Generic; using System.Text; using System.Xml; using System.Data; using System.IO; namespace eBlog.Common.Files { public class XmlHelper { protected string strXmlFile; protected XmlDocument objXmlDoc = new XmlDoc

C#常用操作类库三(XML操作类)

/// <summary> /// XmlHelper 的摘要说明. /// xml操作类 /// </summary> public class XmlHelper { protected string strXmlFile; protected XmlDocument objXmlDoc = new XmlDocument(); public XmlHelper(string XmlFile) { // // TODO: 在这里加入建构函式的程序代码 // try { objX

php xml 操作。

参考 文章:http://www.cnblogs.com/zcy_soft/archive/2011/01/26/1945482.html DOMDocument相关的内容. 属性: Attributes 存储节点的属性列表(只读) childNodes 存储节点的子节点列表(只读) dataType 返回此节点的数据类型 Definition 以DTD或XML模式给出的节点的定义(只读) Doctype 指定文档类型节点(只读) documentElement 返回文档的根元素(可读写) fi

C#:XML操作类

写的一个XML操作类,包括读取/插入/修改/删除. using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlContro

Python XML操作

XML(可扩展性标记语言)是一种非常常用的文件类型,主要用于存储和传输数据.在编程中,对XML的操作也非常常见. 本文根据python库文档中的xml.etree.ElementTree类来进行介绍XML的解析:https://docs.python.org/3.5/library/xml.etree.elementtree.html BTW,xml.etree.cElementTree模块从3.3以后就被弃用了. XML格式 首先,来看一下XML所包含的元素类型 1. 标签 <tag> 2.

xml 操作

//////////////////////////////////////////////////////////////////////////// 要操作的xml文件 <?xml version="1.0" encoding="GB2312" standalone="no"?><PhoneInfo>    <Brand name="华为">        <Type name=&

C# XML 操作

1 xml文件格式 <?xml version="1.0" encoding="utf-8"?> <userInfo> <userName>sa</userName> <userPwd>111111</userPwd> </userInfo> 2 关键代码 2.1 MUserInfo.cs // ********************************************