• 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是一个类似标准TByteArrayWindows单元),但它可以包含多达到maxInt个字节数组。当工作与缓冲区大于32768个字节,有助于避免这种类型范围检查错误。

    4.3.5.TBinaryEncodingType

      Unit NativeXml

      TBinaryEncodingType =
    (xbeBinHex, xbeBase64);

      调用TXmlNodeBufferReadBufferWrite时,使用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;
  • 相关阅读:
    LeetCode 227. Basic Calculator II
    LeetCode 224. Basic Calculator
    LeetCode 103. Binary Tree Zigzag Level Order Traversal
    LeetCode 102. Binary Tree Level Order Traversal
    LeetCode 106. Construct Binary Tree from Inorder and Postorder Traversal
    LeetCode 105. Construct Binary Tree from Preorder and Inorder Traversal
    LeetCode 169. Majority Element
    LeetCode 145. Binary Tree Postorder Traversal
    LeetCode 94. Binary Tree Inorder Traversal
    LeetCode 144. Binary Tree Preorder Traversal
  • 原文地址:https://www.cnblogs.com/acuier/p/2352277.html
Copyright © 2020-2023  润新知