views:

175

answers:

1

Hi,

I am writing an application where I have to parse multiple xml files as a response from a server. Till now, I have written different xml parser classes for each xml depepending on the tags present in different xmls ? Can I combine all xml parser classes and write a single xml parser that handles all different tags in different xmls ? Will it work ? Will combining xml parser classes add an overhead because xml parser will check for every tag irrespective of whether that is part of file or not ?

Please help.

A: 

I also have same problem and SAX Parser is not mandatory to use..but it is preferred. I have to parse multiple XML file but ever XML has different handler.Can there be any generic handler ? It is true that Comparison of tags will result in overhead because files not having a tag will also be checked for it. Still something generic enough t handle this? Please help

shaireen