|
You demonstration shown that it is fairly easy to convert MS pull parser into SAX evenets producer. But advantage of using pull parser is that you don't need to use call-back functions. You can do all processing inside loop of XmlReader and things which must be handled by maintaing state in SAX, can be done much more easily by nesting several loops or conditions inside main XmlReader loop. Using this approach C# example might be easier than Java one using SAX. |