Remember me

Lost Password?

Register now!


Who's Online
40 user(s) are online (18 user(s) are browsing Forums)

Members: 0
Guests: 40


Support us!

Recent OS4 Files

Report message:*

Re: expat.library element length

Subject: Re: expat.library element length
by billyfish on 2019/7/9 2:54:02


For problem 1, if it's a sax parser, then you need to have a buffer that you use to get the data. So you have StartElement () and EndElement () calls that tell you when an element is started and finished. In between them the data handler can get called multiple times, in your case CharacterElement, and you have to append the data chunks together yourself. Does that make sense?

For problem 2, I'd need more info but you should have a lifecycle like

StartElement for Keywords
StartElement for ReservedWords
One or more calls to CharacterElement
EndElement for ReservedWords
EndElement for Keywords

Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project