Question on using event handler with SAX Parsing and DOM

I plan to use SAX parsing for my project. The event handler logic gets complex and not clean when using SAX parsing. I was wondering if it is possible to capture events and create the DOM document for each row we are interested in and parse dom document to capture the information we want at each row end element notification? Can some one shed some light if we can achive this? Please provide your suggestions.

for example if we can create a dom document and add all elements, attributes for the row as events happen for row tag, During end element notification we could use dom methods to get what we want from each row.. If we can achive this that way the event handler would be clean.




  • Hello my friend, got some solution because I studied with the same problem.


    Guilherme Freitas
    Brasil - S
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


In this Discussion