InterviewSolution
| 1. |
Why Is There No Saxreader? |
|
Answer» XStream works on a stream-based parser model, while SAX is event-based. The stream based model IMPLIES, that the caller consumes the INDIVIDUAL tokens from the XML parser on demand, while in an event-based model the parser controls the application flow on its own and will USE callbacks to SUPPORT client processing. The different architecture makes it therefore impossible for XStream to use an event-driven XML parser. XStream works on a stream-based parser model, while SAX is event-based. The stream based model implies, that the caller consumes the individual tokens from the XML parser on demand, while in an event-based model the parser controls the application flow on its own and will use callbacks to support client processing. The different architecture makes it therefore impossible for XStream to use an event-driven XML parser. |
|