因为xml文档数据量比较大,几十MB大吧,用DOM时,刚开始载入的时间很长,如果有对这个问题有解决方法的也请多提建议,谢谢了

解决方案 »

  1.   

    在Marco Cantu的那本《Mastering Delphi6》中有講SAX API的用法。我有CD,程序比較長、若要Source、留個Email。
      

  2.   

    好的,我的email是[email protected],多谢,可以正常解析中文吧?
      

  3.   

    Delphi: XML: Parser: SAX: DOM: What is the difference between the SAX 
    and DOM parser?---DOM:creates an internal representation of an XML document-Nice for smaller XML files, but because of the whole XML file
    representation is in memory, it is possible not useful for
    very large documents-good for representation of an XML document.---SAX:Event driven, so reacting when it finds certain elements in the XML
    code (e.g. tags,
    properties, ...)goes from top to bottom, and if it encounterse.g. begintag, it fires an event.
    e.g. end tag, it fires and event.
    e.g. begin of file, it fires an event---
    ---Internet: see also:---http://www.skch.net./http://www.skch.net/download/xml1.pdfhttp://www.skch.net/download/xml2.pdfhttp://www.tek-tips.com/gviewthread.cfm/lev2/4/lev3/29/pid/102/qid/526604