次のようなXMLのセクションがあります。
<entry>
<id>tag:example.com,2005:Release/343597</id>
<published>2012-04-10T11:29:19Z</published>
<updated>2012-04-10T12:04:41Z</updated>
<link type="text/html" href="http://example.com/projects/example1" rel="alternate"/>
<title>example1</title>
</entry>
http://example.com/projects/example1このブロックからリンクを取得する必要があります。これを行う方法がわかりません。プロジェクトのタイトルを取得するには、次のコードを使用します。
String title1 = children.item(9).getFirstChild().getNodeValue();
ここで、はブロックchildrenのgetChildNodes()オブジェクトです。<entry> </entry>しかし、同様の方法でノードNullPointerExceptionsのノード値を取得しようとすると、取得し続けます。<link>ノードごとにXMLコードが異なるようですが、その<link>値がわかりません。...アドバイスしてください。