Re: How to find the group information by SAX-Parsing

2007-03-14 Thread keshlam
> if there have been already some standard solutions from SAX, No off-the-shelf libraries that I know of at the SAX level, since it's usually easy to hand-code. There are also data binding tools, which focus on parsing XML into application-specific data structures. Those do_generally produce str

Re: How to find the group information by SAX-Parsing

2007-03-14 Thread Michael Glavassevich
A couple related questions have been asked in the last few months on this list. You might find the following posts [1][2][3] useful. [1] http://mail-archives.apache.org/mod_mbox/xerces-j-users/200611.mbox/[EMAIL PROTECTED] [2] http://mail-archives.apache.org/mod_mbox/xerces-j-users/200701.mbox

Re: How to find the group information by SAX-Parsing

2007-03-14 Thread Di Li
First of all thank you very much for your help! Certainly the standard solution is to structure the data properly. But some customers of the company (SAP), where i am writing my master thesis, didn't do the standard thing. They are defining their data structures relying on sequence of children to

Re: How to find the group information by SAX-Parsing

2007-03-14 Thread keshlam
The standard solution is to structure the data properly, so you have a which contains all the information about a person, rather than relying on sequence of children to imply grouping. If you must rely on sequence, basically you're writing a simple FSM that accumulates data, acting on that accum