DOMParser解析xml

<maintag>
<item>
<name> AndroidPeople </name>
<website category="android"> www.androidpeople.com </website>
</item>
<item>
<name> iPhoneAppDeveloper </name>
<website category="iPhone"> www.iphone-app-developer.com </website>
</item>
<maintag>
</maintag>

<item>
<name>AndroidPeople</name>
<website category="android">www.androidpeople.com</website>
</item>
<item>
<name>iPhoneAppDeveloper</name>
<website category="iPhone">www.iphone-app-developer.com</website>
</item>
</maintag>
 

你可能感兴趣的:(parser)