0
傢伙,我有以下XML讓孩子標籤基於從XML父標記
<Point scount ="1">
<Image name="app.png" />
</Point>
我需要解析這樣的XML首先,我需要到該<Point>
然後,我需要選擇<image>
標記。
如何做到這一點,現在我正在從圖像標籤中獲取像這樣的值。
NodeList image = doc.getElementsByTagName("Image");
String imagess = ((Element)image.item(imageindex)).getAttribute("name");
如何達致這...
感謝您的幫助 – Goofy 2012-02-14 13:28:29