java - Parse XML files with strange syntax -
this question has answer here:
- xml child node attribute value 3 answers
first: there name type of xml syntax? second: how can parse xml file java, have looked on som sax examples, cant figure out how parse xml files type of syntax. please give me som advice.
<company> <staff firstname="yong" lastname="mook" nickname="mkyoung" salary="10000" /> <staff firstname="low" lastname="yin fong" nickname="fong fong" salary="2000" /> </company>
the dom4j library great if xml fits memory.
usage:
document doc = documenthelper.parsetext(xmlstring);
note: use 1.6.1 version, 2.0 version not active , development stopped in alpha.
Comments
Post a Comment