Delphi操作XML:数据类型

4.3. 类型 (Types)

4.3.1.PBigByteArray

   Unit NativeXml

   PBigByteArray =
^TBigByteArray;

4.3.2.PUnicodeChar

   Unit NativeXml

   PUnicodeChar = PWideChar;

4.3.3.RawByteString

   Unit NativeXml

   RawByteString = AnsiString;

4.3.4.TBigByteArray

   Unit NativeXml

   TBigByteArray =
array[0..MaxInt - 1] of byte;

   TBigByteArray 是一个类似标准 TByteArray Windows 单元),但它可以包含多达到 maxInt 个字节数组。当工作与缓冲区大于 32768 个字节,有助于避免这种类型范围检查错误。

4.3.5.TBinaryEncodingType

   Unit NativeXml

   TBinaryEncodingType =
(xbeBinHex, xbeBase64);

  调用 TXmlNode BufferRead BufferWrite 时,使用 TBinaryEncodingType 选择采样什么样的二进制编码。

4.3.6.TBytes

   Unit NativeXml

   TBytes = TBigByteArray;

4.3.7.TPointer

   Unit NativeXml

   TPointer = Pointer;

4.3.8.TsdStreamModeType

   Unit NativeXml

   TsdStreamModeType =
(umUnknown, umRead, umWrite);

  此枚举定义转换流访问模式。

4.3.9.TStringEncodingType

   Unit NativeXml

   TStringEncodingType =
(seAnsi, seUCS4BE, seUCS4LE, seUCS4_2143, seUCS4_3412, se16BitBE, se16BitLE,
seUTF8, seUTF16BE, seUTF16LE, seEBCDIC);

  定义的字符串的编码方式。

4.3.10.TXmlCompareOption

   Unit NativeXml

   TXmlCompareOption =
(xcNodeName, xcNodeType, xcNodeValue, xcAttribCount, xcAttribNames,
xcAttribValues, xcChildCount, xcChildNames, xcChildValues, xcRecursive);

4.3.11.TXmlCompareOptions

   Unit NativeXml

   TXmlCompareOptions = set of
TXmlCompareOption;

4.3.12.TXmlElementType

   Unit NativeXml

   TXmlElementType =
(xeNormal, xeComment, xeCData, xeDeclaration, xeStylesheet, xeDoctype,
xeElement, xeAttList, xeEntity, xeNotation, xeExclam, xeQuestion, xeCharData,
xeUnknown);

   TXmlElementType 列举了可以在 XML 文档中元素的不同类型。

4.3.13.TXmlFormatType

   Unit NativeXml

   TXmlFormatType =
(xfReadable, xfCompact);

   TNativeXml.Format 说明:

   xfReadable (默认)能够用标准的编辑器读取的 xml 文件。

   xfCompact 来保存 XML 完全兼容和最小尺寸。

4.3.14.TXmlNodeCompareEvent

   Unit NativeXml

   TXmlNodeCompareEvent =
function (Sender: TObject; Node1, Node2: TXmlNode; Info: TPointer): integer of
object;

  此事件是用在 TNativeXml.OnNodeCompare 事件,如果 Node1 < Node2 应返回 -1 ,如果 Node1 = Node2 应返回 0 ,如果 Node1 > Node2 应返回 1

4.3.15.TXMLNodeCompareFunction

   Unit NativeXml

   TXMLNodeCompareFunction =
function (Node1, Node2: TXmlNode; Info: TPointer): integer;

  通过 TXmlNode.SortChildNodes 调用的函数。如果 Node1 < Node2 应返回 -1 ,如果 Node1 = Node2 应返回 0 ,如果 Node1 > Node2 应返回 1

4.3.16.TXmlNodeEvent

   Unit NativeXml

   TXmlNodeEvent = procedure
(Sender: TObject; Node: TXmlNode) of object;

  一个基于对象的 TXmlNode 节点为基础的事件。

4.3.17.TXmlProgressEvent

   Unit NativeXml

   TXmlProgressEvent =
procedure (Sender: TObject; Size: integer) of object;

  一个被用来表示加载或保存进度事件。

4.3.18.UnicodeChar

   Unit NativeXml

   UnicodeChar = WideChar;

4.3.19.UnicodeString

   Unit NativeXml

   UnicodeString = WideString;

4.3.20.ustring

   Unit NativeXmlAppend

   ustring = UTF8String;

转载于:https://www.cnblogs.com/acuier/archive/2012/02/15/2352277.html

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值