亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? nativexml.pas

?? delphi通訊程序,需要用delphi做通訊的朋友有個參考的例子
?? PAS
?? 第 1 頁 / 共 5 頁
字號:
{ unit NativeXml

  This is a small-footprint implementation to read and write XML documents
  natively from Delpi code.

  You can use this code to read XML documents from files, streams or strings.
  The load routine generates events that can be used to display load progress
  on the fly.

  Author: Nils Haeck M.Sc. (n.haeck@simdesign.nl)
  Version: 2.20
  Original date: 01-Apr-2003
  Last Modified: 16-Sep-2005

  Latest changes:
  06-Aug-2004
    Removed unit Dialogs in registered version (required only for trial reminder
    message), using defines.
  08-Aug-2004
    Added methods TXmlNode.NodeRemove, NodeIndexOf and Delete.
  16-Aug-2004
    Added public function DateTimeToString
    Made TXmlNode.WriteToString public method
    Changed name of TXmlDocument to TsdXmlDocument, and changed name of unit to
    sdXmlDocuments. WARNING this change may impact the application code! Solution:
    simply rename all the occurances of above object class and unit name.
  17-Aug-2004
    Removed bug with <!DOCTYPE...> declaration
  27-Aug-2004
    Added support for unicode. This is done by allowing strings in the document
    and nodes to be encoded as UTF8 (see property TXmlDocument.Utf8Encoded).
    Added support for loading UTF8 files.
    Added TXmlNode methods ValueAsWidestring, ToWidestring, FromWidestring,
    ToAnsiString, FromAnsiString, ReadWidestring, WriteWidestring.
    Added TXmlNode method AttributeDelete.
  01-Sep-2004
    Added version string constant NativeXmlVersion.
    Added conversion of character references (&#...; and &#x...;).
  02-Sep-2004
    Renamed DateTimeToString and DateTimeFromStringDefault to sdDateTimeToString
    and sdDateTimeFromStringDefault to avoid naming conflict with SysUtils unit.
  17-Sep-2004
    Made compatible with Delphi 2, 3 and 4.
  20-Sep-2004
    Added method TXmlNode.ReadAttributeString
  21-Sep-2004
    Enhancements to stream converters to make writing faster when no conversion
    is neccesary.
  22-Sep-2004
    Fixed bug in AttributeByName
  25-Sep-2004
    Added methods for buffered reading/writing to streams, this immensely speeds up
    disk-based access. See classes TsdBufferedReadStream/TsdBufferedWriteStream.
    Added option TNativeXml.DropCommentsOnParse. This provides for easier
    processing of XML files with occasional comments in them. By default this
    option is off.
  03-Nov-2004
    Changed attribute parsing code to allow controlchars #10 and #13 inside attribute
    quoted strings.
    Changed name TXmlNode.NodeReplace to TXmlNode.NodeFindOrCreate to be more
    descriptive
    Removed function AttributeValueByName and replaced it with property
    AttributeValueByName, so that an attribute can also be written to it.
  17-Nov-2004
    Added TXmlNode methods WriteInt64 and ReadInt64, added property ValueAsInteger,
    ValueAsFloat, ValueAsBool and ValueAsDateTime.
  03-Dec-2004
    Added TXmlNode method SortChildNodes
  15-Dec-2004
    Added compiler directives to make compatible with Delphi2005
  17-Dec-2004
    Added DTD parsing. Currently there is no validation yet. The <!ENTITY> elements
    in the DTD will be used when ResolveEntityReferences is called.
  18-Dec-2004
    Added property EntityByName[] to TNativeXml
    Added procedure ResolveEntityReferences to TNativeXml
  22-Dec-2004
    Added xeCharData type for elements with multiple chardata subelements. The
    first xeCharData is converted to TXmlNode.ValueDirect.
  19-Jan-2005
    Corrected problem with Root property during parsing.
  28-Jan-2005
    Corrected problem with xeCharData parsing and checking for control characters.
    Added IndentString property.
    Added TXmlNodeList utility list class (to avoid casting).
    Added EncodeBase64/DecodeBase64/EncodeBinHex/DecodeBinHex global functions
  29-Jan-2005
    Changed unit name from sdXmlDocuments to NativeXml, changed class name
    TsdXmlDocument to TNativeXml. WARNING this change may impact the application
    code! Solution: simply rename all the occurances of above object class and
    unit name.
  02-Feb-2005
    Added TBigByteArray type to avoid compiler Range Check warnings
  03-Feb-2005
    Fixed bug with writing of DTD
    Optimized TXmlNode memory usage by creating the FNodes and FAttributes objects
    on the fly when neccesary instead of always at creation time
  23-Feb-2005
    Changed order of DoNodeLoaded and DoProgress, to avoid bug when freeing in
    OnNodeLoaded.
  29-Apr-2005
    Added SortAttributes property
    Added ParserWarnings property
    Added RootNodeList property, to allow easier access to XML nodes in the header
    Removed ExtraNodes and Comments properties
    Changed Assign methods (faster now)
  05-May-2005
    Added function TXmlNode.NodeByElementType
    Added boolean property TNativeXml.AbortParsing
  25-Jul-2005
    Fixed bug with end-tag reading (when reading CDATA sections with "]" in the
    data string)
  26-Jul-2005
    Fixed bug with begin-tag reading
  02-Aug-2005
    Added TXmlNode.IsEqualTo function to compare nodes in documents
    Fixed bug in FullPath property (one slash too much at start)
  16-Sep-2005
    Made compatible with Delphi 9 .NET
    FindNodes can now also be used with full paths
    Bugfix: no longer adds CRLF after ENTITY declarations
    Bugfix: AttributeName[] setter now no longer strips quotes from attribute
    value.
    Added AttributeValueAsWidestring[] property
    Added AttributeValueAsInteger[] property

  Note: any external encoding (ANSI, UTF16, etc) is converted to an internal
  encoding that is ANSI or UTF8. When the loaded document is ANSI based,
  the encoding will be ANSI, in other cases (UTF8, UTF16) the encoding
  will be UTF8.

  Author: Nils Haeck M.Sc.
  Copyright (c) 2003-2005 Simdesign B.V.

  It is NOT allowed under ANY circumstances to publish or copy this code
  without prior written permission of the Author!

  This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF
  ANY KIND, either express or implied.

  Please visit http://www.simdesign.nl/xml.html for more information.
}

{$DEFINE USEGRAPHICS} // uncomment if you do not want to include the Graphics unit.

// Delphi and BCB versions

// Delphi 3
{$IFDEF VER110}
  {$DEFINE D3UP}
{$ENDIF}
// Delphi 4
{$IFDEF VER120}
  {$DEFINE D3UP}
  {$DEFINE D4UP}
{$ENDIF}
// BCB 4
{$IFDEF VER125}
  {$DEFINE D4UP}
{$ENDIF}
// Delphi 5
{$IFDEF VER130}
  {$DEFINE D3UP}
  {$DEFINE D4UP}
  {$DEFINE D5UP}
{$ENDIF}
//Delphi 6
{$IFDEF VER140}
  {$DEFINE D3UP}
  {$DEFINE D4UP}
  {$DEFINE D5UP}
  {$DEFINE D6UP}
{$ENDIF}
//Delphi 7
{$IFDEF VER150}
  {$DEFINE D3UP}
  {$DEFINE D4UP}
  {$DEFINE D5UP}
  {$DEFINE D6UP}
  {$DEFINE D7UP}
{$ENDIF}
//Delphi 8
{$IFDEF VER160}
  {$DEFINE D3UP}
  {$DEFINE D4UP}
  {$DEFINE D5UP}
  {$DEFINE D6UP}
  {$DEFINE D7UP}
  {$DEFINE D8UP}
{$ENDIF}
// Delphi 2005
{$IFDEF VER170}
  {$DEFINE D3UP}
  {$DEFINE D4UP}
  {$DEFINE D5UP}
  {$DEFINE D6UP}
  {$DEFINE D7UP}
  {$DEFINE D8UP}
  {$DEFINE D9UP}
{$ENDIF}
// above Delphi 2005
{$IFDEF VER180}
  {$DEFINE D3UP}
  {$DEFINE D4UP}
  {$DEFINE D5UP}
  {$DEFINE D6UP}
  {$DEFINE D7UP}
  {$DEFINE D8UP}
  {$DEFINE D9UP}
  {$DEFINE D10UP}
{$ENDIF}

unit NativeXml;

interface

uses
  {$IFDEF D9UP}
  Windows,
  {$ENDIF}
  {$IFDEF CLR}
  System.Text,
  {$ENDIF}
  Classes,
  {$IFDEF USEGRAPHICS}
  {$IFDEF LINUX}
  QGraphics,
  {$ELSE}
  Graphics,
  {$ENDIF}
  {$ENDIF}
  SysUtils;

const

  // Current version of the XmlDocuments unit
  cNativeXmlVersion = '2.20';

// Delphi 3 and below stubs
{$IFNDEF D4UP}
type
  TReplaceFlags = set of (rfReplaceAll, rfIgnoreCase);
function StringReplace(const S, OldPattern, NewPattern: string;
  Flags: TReplaceFlags): string;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲小说春色综合另类电影| 久久99久久久久| 亚洲第一av色| 日韩欧美电影一二三| 国产成人小视频| 亚洲成人黄色小说| 首页亚洲欧美制服丝腿| 精品精品国产高清a毛片牛牛| www.av亚洲| 开心九九激情九九欧美日韩精美视频电影 | 极品少妇xxxx精品少妇| 亚洲精品欧美激情| 丁香桃色午夜亚洲一区二区三区| 久久综合色一综合色88| 欧美亚州韩日在线看免费版国语版| 九九久久精品视频| 国产一区视频网站| 亚洲成人久久影院| 美日韩一区二区| 亚洲国产一二三| 日本特黄久久久高潮| 久久伊人中文字幕| 欧美日韩成人在线| 不卡视频一二三四| 国产一区二区三区免费| 国产成人av电影免费在线观看| 成人免费观看视频| 欧美亚洲一区二区在线| 精品久久久久av影院| 成人av资源在线| 一本色道久久加勒比精品| 国产精品白丝av| 久久激情五月婷婷| 国产激情91久久精品导航 | 久久久99久久精品欧美| 一本色道综合亚洲| 91精品国产综合久久香蕉的特点 | 亚洲成av人片一区二区三区| 国产高清亚洲一区| 精品一区二区三区av| aaa亚洲精品| 日韩视频中午一区| 欧美美女视频在线观看| 欧美午夜一区二区三区 | 久久精品国产免费| 成人午夜视频在线| 日韩三级视频在线看| 国产精品嫩草影院av蜜臀| 国产免费久久精品| 国产精品毛片大码女人| 人禽交欧美网站| 激情丁香综合五月| 国产91丝袜在线播放九色| 欧美色综合天天久久综合精品| 日本一区二区在线不卡| 奇米一区二区三区av| 色综合天天综合色综合av| 欧洲精品在线观看| 7777精品伊人久久久大香线蕉经典版下载| 亚洲高清久久久| 国产精品一二三四| 欧美精品v国产精品v日韩精品| 国产欧美日韩在线看| 蜜臀久久久久久久| 欧美亚洲禁片免费| 一区二区三区在线影院| 国产欧美一区二区精品性色| 天堂久久久久va久久久久| 色天使色偷偷av一区二区| 国产精品激情偷乱一区二区∴| 日本午夜一区二区| 色哟哟亚洲精品| 亚洲欧美日韩国产综合在线| 天天综合色天天| 色欧美乱欧美15图片| 欧美区一区二区三区| 亚洲蜜臀av乱码久久精品| eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | 国产在线观看免费一区| 欧美一区二区日韩| 久久久久久久综合日本| 精品无人区卡一卡二卡三乱码免费卡| 制服丝袜成人动漫| 视频一区中文字幕| 日韩一级高清毛片| 国产一区啦啦啦在线观看| 久久亚洲精品国产精品紫薇| 国产在线精品一区二区夜色| 国产亚洲视频系列| 国产成人午夜精品影院观看视频 | 成人三级在线视频| 中文字幕乱码日本亚洲一区二区| 亚洲一二三四区| 精品一区二区三区久久| 精品99999| 成人性生交大片免费看视频在线| 国产精品久久久久久久久搜平片| 成人av在线一区二区三区| 亚洲少妇中出一区| 成人一区在线观看| 亚洲三级在线播放| 欧美疯狂做受xxxx富婆| 老司机免费视频一区二区| 精品久久久久久久人人人人传媒| 国产福利不卡视频| 一区二区三区欧美日韩| 91精品福利在线一区二区三区| 国产一区二区福利视频| 国产精品成人免费精品自在线观看| 99久久综合99久久综合网站| 亚洲国产综合视频在线观看| 日韩欧美资源站| 成人免费视频视频在线观看免费| 亚洲人亚洲人成电影网站色| 欧美精品欧美精品系列| 成人激情午夜影院| 免费成人在线视频观看| 国产精品久久久久婷婷| 911精品产国品一二三产区| 国产成人午夜99999| 亚洲午夜久久久久中文字幕久| 337p日本欧洲亚洲大胆精品| 91在线观看高清| 亚洲激情图片一区| 久久女同精品一区二区| 欧美网站大全在线观看| 懂色av噜噜一区二区三区av | 欧美精品一二三区| 国产成人免费视频网站高清观看视频 | 亚洲www啪成人一区二区麻豆| 久久无码av三级| 欧美另类高清zo欧美| a美女胸又www黄视频久久| 久久国产综合精品| 亚洲国产一区二区在线播放| 日韩美女视频19| 久久影视一区二区| 欧美精品亚洲二区| 91福利国产成人精品照片| 亚洲愉拍自拍另类高清精品| 欧美韩日一区二区三区四区| 日韩欧美激情一区| 欧美日韩国产精品成人| 91麻豆自制传媒国产之光| 国产河南妇女毛片精品久久久| 日韩精品一区第一页| 午夜久久久久久久久| 亚洲精选视频在线| 最新国产成人在线观看| 国产精品网友自拍| 久久九九久久九九| 久久久夜色精品亚洲| 日韩欧美国产三级| 精品美女在线观看| 日韩一区二区在线看片| 91精品国产aⅴ一区二区| 欧美日韩中文字幕一区二区| 国产精品99久久久久久久女警| 老司机精品视频线观看86| 免费观看一级欧美片| 美国十次了思思久久精品导航| 天天综合天天综合色| 日av在线不卡| 国产综合久久久久久久久久久久| 亚洲国产精品一区二区久久恐怖片| 精品一区二区三区久久久| 麻豆精品视频在线观看免费| 天天综合网 天天综合色| 视频在线观看一区二区三区| 日本 国产 欧美色综合| 蜜桃91丨九色丨蝌蚪91桃色| 精品伊人久久久久7777人| 国内精品视频一区二区三区八戒| 国产在线国偷精品免费看| 国产成人超碰人人澡人人澡| 99国产精品国产精品毛片| 亚洲精品视频在线观看免费| 亚洲男人的天堂av| 亚洲成人黄色影院| 国产综合久久久久久久久久久久| 成人性生交大片免费看视频在线| 91色视频在线| 欧美高清性hdvideosex| 精品国产凹凸成av人导航| 日本一区二区视频在线| 亚洲综合色婷婷| 久久99久久精品欧美| av中文字幕亚洲| 88在线观看91蜜桃国自产| 久久亚洲精华国产精华液| 专区另类欧美日韩| 毛片av一区二区| 北条麻妃国产九九精品视频| 精品视频一区二区不卡| 久久你懂得1024| 亚洲国产精品一区二区久久 | 亚洲国产乱码最新视频| 国产麻豆91精品| 欧美日韩国产系列| 国产精品少妇自拍|