[yunqa.de] Re: SAX speed

  • From: Delphi Inspiration <delphi@xxxxxxxx>
  • To: yunqa@xxxxxxxxxxxxx
  • Date: Mon, 09 Jul 2012 17:24:17 +0200

On 09.07.2012 15:09, Torsten Spindler wrote:

> Thanks for the quick help! I've slightly modified your example, so it
> compiles for me: Replace the NativeUInt fields in TUserData with 
> Int64.

Sorry for that. I have added NativeUInt to my updated DISystemCompat.pas
so it is available with all compilers. I should have added

> Otherwise I get the error '[DCC Error] DIXml_SAX2_fMain.pas(791): 
> F2084 Internal Error: C1264',  which does not tell me anything.

This indicates a bug in the Delphi compiler. NativeUInt has indeed known
bugs with older Delphi versions. Which one are you using?

> Just a nitpick, replace startElementNs with endElementNs in 
> Memo.Lines.Add(Format('EndTagsNS:  %8d', [User.startElementNs])); if 
> you want to provide the modified demo.

Thanks, I corrected this.

> For testing I modified your demo further and store the character data
> found in a buffer and process it when an end tag is detected. 
> However, this fails for the attributes. I've set a breakpoint at the 
> start of SaxAttributeDecl, but it is never encountered. Any advice? 
> I've attached the hacked sources for your convenience.

The SaxAttributeDecl callback is for DTD attribute declarations.

XML element attributes are returned as part of the SaxStartElementNS
callback.

Ralf
_______________________________________________
Delphi Inspiration mailing list
yunqa@xxxxxxxxxxxxx
//www.freelists.org/list/yunqa



Other related posts: