java - Parse XML files with strange syntax -


this question has answer here:

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

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -