XML operation using Intraweb-Intraweb is using the Nativexml

Source: Internet
Author: User


In the Iwnativexml unit. Know this, later in other Delphi program can also directly Uses iwnativexml.
Tnativexml(Iwnativexml.tnativexml < Tpersistent < TObject) Key members:
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) Key members:
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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.