« Return to Thread: Parsing progressively...

Parsing progressively...

by Etienne Philip Pretorius :: Rate this Message:

Reply to Author | View in Thread

Hello list,

Just a quick question about spirit. If I was to use it to create and
parse xml content, will it parse of the content continuously or could
one build up a SAX like parser with this framework. Something akin to
xecedes pparse or libxml parse_chunk.

More detail:
I am storing data from the network in a boost::array and I have written
a forward iterator to decode via dereferencing each utf8 byte sequence
into its unicode code point. Should I build up the passed content into
another buffer so that spirit could parse from "<"....">" or could I
pass the original boost array that will contain the "<" and then later
another parse call to get the ">" in the next iteration of the network
loop. Will spirit then recognize the start tag over the buffer break?

(does spirit keep its own buffer to track the parse with its state machine?)

Please ignore my ignorance on the spirit framework, as I am only
starting to look at it and it seems quite a bit for me to figure out at
this time.

Thank you,
Etienne

------------------------------------------------------------------------------
_______________________________________________
Spirit-general mailing list
Spirit-general@...
https://lists.sourceforge.net/lists/listinfo/spirit-general

 « Return to Thread: Parsing progressively...