8288分类目录 8288分类目录 8288分类目录
  当前位置:海洋目录网 » 站长资讯 » 站长资讯 » 文章详细 订阅RssFeed

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

来源:本站原创 浏览:116次 时间:2021-09-16
使用 IntraWeb (31) - IntraWeb 的 Xml 操作使用的是 NativeXml    


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



TNativeXml (IWNativeXml.TNativeXml < TPersistent < TObject) 的主要成员:


property AbortParsing: Booleanproperty BinaryEncoding: TBinaryEncodingTypeproperty CommentString: UTF8Stringproperty DropCommentsOnParse: Booleanproperty EncodingString: UTF8Stringproperty ExternalEncoding: TStringEncodingTypeproperty FloatAllowScientific: Booleanproperty FloatSignificantDigits: Integerproperty IndentString: UTF8Stringproperty Root: TXmlNodeproperty RootNodeList: TXmlNodeproperty StyleSheetNode: TXmlNodeproperty UseFullNodes: Booleanproperty Utf8Encoded: Booleanproperty VersionString: UTF8Stringproperty WriteOnDefault: Booleanproperty XmlFormat: TXmlFormatTypeproperty ParserWarnings: Booleanproperty EntityByName[AName: UTF8String]: UTF8Stringproperty OnNodeCompare: TXmlNodeCompareEventproperty OnNodeNew: TXmlNodeEventproperty OnNodeLoaded: TXmlNodeEventproperty OnProgress: TXmlProgressEventproperty OnUnicodeLoss: TNotifyEventconstructor Createconstructor CreateName(const ARootName: UTF8String)class destructor Destroyprocedure Assign(Source: TPersistent)procedure Clearfunction IsEmpty: Booleanprocedure LoadFromStream(Stream: TStream)procedure LoadFromFile(const AFileName: string)procedure ReadFromString(const AValue: UTF8String)procedure ResolveEntityReferencesprocedure SaveToStream(Stream: TStream)procedure SaveToFile(const AFileName: string)function WriteToString: UTF8Stringfunction GetEntityByName(AName: UTF8String): UTF8String


TXmlNode (IWNativeXml.TXmlNode < TPersistent < TObject) 的主要成员:


property AttributeCount: Integerproperty BinaryEncoding: TBinaryEncodingTypeproperty BinaryString: RawByteStringproperty CascadedName: UTF8Stringproperty Document: TNativeXmlproperty ElementType: TXmlElementTypeproperty FullPath: UTF8Stringproperty Name: UTF8Stringproperty Parent: TXmlNodeproperty NodeCount: Integerproperty Tag: Integerproperty TotalNodeCount: Integerproperty TreeDepth: Integerproperty ValueAsBool: Booleanproperty ValueAsDateTime: TDateTimeproperty ValueAsInt64: Int64property ValueAsInteger: Integerproperty ValueAsFloat: Doubleproperty ValueAsString: UTF8Stringproperty ValueAsUnicodeString: stringproperty ValueDirect: UTF8Stringproperty WriteOnDefault: Booleanproperty AttributeByName[const AName: UTF8String]: UTF8Stringproperty AttributeByNameWide[const AName: UTF8String]: stringproperty AttributeName[Index: Integer]: UTF8Stringproperty AttributePair[Index: Integer]: UTF8Stringproperty AttributeValue[Index: Integer]: UTF8Stringproperty AttributeValueAsUnicodeString[Index: Integer]: stringproperty AttributeValueAsInteger[Index: Integer]: Integerproperty AttributeValueDirect[Index: Integer]: UTF8Stringproperty Nodes[Index: Integer]: TXmlNodeconstructor 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 Deleteprocedure DeleteEmptyNodesclass destructor Destroyprocedure 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): Integerprocedure AttributesClearprocedure BufferRead(var Buffer; Count: Integer)procedure BufferWrite(const Buffer; Count: Integer)function BufferLength: Integerprocedure Clearfunction FindNode(const NodeName: UTF8String): TXmlNodeprocedure FindNodes(const NodeName: UTF8String; const AList: TList)function FromAnsiString(const s: AnsiString): UTF8Stringfunction FromUnicodeString(const W: string): UTF8Stringfunction HasAttribute(const AName: UTF8String): Booleanfunction IndexInParent: Integerfunction IsClear: Booleanfunction IsEmpty: Booleanfunction IsEqualTo(ANode: TXmlNode; Options: TXmlCompareOptions; MismatchNodes: TList): Booleanfunction NodeAdd(ANode: TXmlNode): Integerfunction NodeByAttributeValue(const NodeName: UTF8String; const AttribName: UTF8String; const AttribValue: UTF8String; ShouldRecurse: Boolean): TXmlNodefunction NodeByElementType(ElementType: TXmlElementType): TXmlNodefunction NodeByName(const AName: UTF8String): TXmlNodeprocedure NodeDelete(Index: Integer)procedure NodeExchange(Index1: Integer; Index2: Integer)function NodeExtract(ANode: TXmlNode): TXmlNodefunction NodeFindOrCreate(const AName: UTF8String): TXmlNodefunction NodeIndexByName(const AName: UTF8String): Integerfunction NodeIndexByNameFrom(const AName: UTF8String; AFrom: Integer): Integerfunction NodeIndexOf(ANode: TXmlNode): Integerprocedure NodeInsert(Index: Integer; ANode: TXmlNode)function NodeNew(const AName: UTF8String): TXmlNodefunction NodeNewAtIndex(Index: Integer; const AName: UTF8String): TXmlNodefunction NodeRemove(ANode: TXmlNode): Integerprocedure NodesClearprocedure NodesByName(const AName: UTF8String; const AList: TList)



  推荐站点

  • At-lib分类目录At-lib分类目录

    At-lib网站分类目录汇集全国所有高质量网站,是中国权威的中文网站分类目录,给站长提供免费网址目录提交收录和推荐最新最全的优秀网站大全是名站导航之家

    www.at-lib.cn
  • 中国链接目录中国链接目录

    中国链接目录简称链接目录,是收录优秀网站和淘宝网店的网站分类目录,为您提供优质的网址导航服务,也是网店进行收录推广,站长免费推广网站、加快百度收录、增加友情链接和网站外链的平台。

    www.cnlink.org
  • 35目录网35目录网

    35目录免费收录各类优秀网站,全力打造互动式网站目录,提供网站分类目录检索,关键字搜索功能。欢迎您向35目录推荐、提交优秀网站。

    www.35mulu.com
  • 就要爱网站目录就要爱网站目录

    就要爱网站目录,按主题和类别列出网站。所有提交的网站都经过人工审查,确保质量和无垃圾邮件的结果。

    www.912219.com
  • 伍佰目录伍佰目录

    伍佰网站目录免费收录各类优秀网站,全力打造互动式网站目录,提供网站分类目录检索,关键字搜索功能。欢迎您向伍佰目录推荐、提交优秀网站。

    www.wbwb.net