Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
21 user(s) are online (14 user(s) are browsing Forums)

Members: 0
Guests: 21

more...
Support us!
Recent OS4 Files
OS4Depot.net
Report message:*
 

Re: expat.library element length

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

@mritter0

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