This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
then inputLine will be null and even if this code would compile, you'd get a NullPointerException. It looks like you want to parse an XML file. You'll need to put the data from the response in an XML Document and extract the data that you're looking for from that.