java - Parsing big XML files using SAX parser (skip some lines/tags) -
I am currently developing an app that receives data from the Internet using SAX. I used it to parse XML files like normal weather. However, I'm interested in parsing those websites to the next level. The page is too big and looks dirty. I need to retrieve some specific lines; The rest is not useful for me. Is it possible to leave those useless lines / tags or will I have to step by step?
I like Commons-digester, this allows you to specify rules against special tags. The rule is executed only when the tag has to be faced.
The digester is built on the sacox and therefore requires all the sax features and attributes that are necessary to choose specific tags. It also uses a stack that is pushed with new elements and when the related tag is encountered and pops when the elements end.
I use it to parse all my configuration files
on Digester
Comments
Post a Comment