J J
2013-04-18 17:06:19
Looking to scrape the info from this page
http://www.autoweek.nl/async_nc/get_kenteken_page.php?page=1&cache=no&kenteken=13zpl2
So far I've been using a regex that works pretty well.
But there must be better and more viable ways to parse this.
There is a class with the name "naam" and a certain value, and a class with the name "waarde" with a certain value. Looking to get those values so I can use them in an Android App I'm making (Preview: http://puu.sh/2CBiK.png)
Some options are XPaths and SAX or some other parsers but I have no idea what the best is in this case.
Greetz,
JJ
http://www.autoweek.nl/async_nc/get_kenteken_page.php?page=1&cache=no&kenteken=13zpl2
So far I've been using a regex that works pretty well.
private static final Pattern p = Pattern.compile("class=\"naam\"(.*?)>(([a-zA-Z0-9 _.()/-]*[a-zA-Z0-9 _.()/-]))<(.*?)class=\"waarde\".*?>((.*?))<");Atleast that works.But there must be better and more viable ways to parse this.
There is a class with the name "naam" and a certain value, and a class with the name "waarde" with a certain value. Looking to get those values so I can use them in an Android App I'm making (Preview: http://puu.sh/2CBiK.png)
Some options are XPaths and SAX or some other parsers but I have no idea what the best is in this case.
Greetz,
JJ