2
<content type="xhtml">
<apxh:div>
<apxh:p>xyz</apxh:p>
<apxh:p>xyz</apxh:p>
<apxh:p>xyz</apxh:p>
<apxh:p>xyz</apxh:p>
<apxh:p>xyz</apxh:p>
</apxh:div>
</content>
我能夠得到「XHTML」目前在按類型,解析XML具有屬性
item.getChild(url,CONTENT).setStartElementListener(new StartElementListener() {
@Override
public void start(Attributes attributes) {
str=attributes.getValue("type");
}
});
item.getChild(url,CONTENT).setEndElementListener(new EndElementListener() {
@Override
public void end() {
currentMessage.setType(str);
}
});
現在,我如何能得到「apxh:格」,因爲它是由分離「 :「?
謝謝。
實際上它是一個atom feed解析。 – zaiff
嘗試SOAP解析,一般肥皂解析有這種模式,你有.... – Richa