xml - Extract feeds list from an OPML file in java -


i want extract list of feed information opml file in java. know have use xml-parse technique, have no idea use.

i java beginner, tell me how , give me example?

thanks lot!!

this should straight forward. can take 1 of hte following 2 approaches.

  1. use java parsing capabilities , parse xml file. here example using dom parse.

  2. there lot of open source code/libraries doing this. here one such example. class has method public arraylist<opmlelement> readdocument(reader reader). can create reader object opml file , pass same function. please note library depends on xml pull parser libraries. if not want add dependency use first approach.

  3. here another example on forum itself.


Comments