Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

technorati api parsing

 
ilteris kaplan
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello Folks,

I am having an interesting problem here which I couldnt' quite figure out. I am basically trying to use REST service of technorati and I am using java to parse the text. The problem is I couldn't figure out how to go two levels deep with getting child nodes. I was trying this getChildNodes().getChildNodes() but of course it didn't work. Can you tell me what I am doing wrong?

 
Ulf Dittmer
Rancher
Posts: 42970
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
getChildNodes().getChildNodes() will not work because getChildNodes can only be called on a Node, not a NodeList. So what you need to do is pick one particular node by item(x), in effect getChildNodes().item(x).getChildNodes().

That's what your code seems to be doing. How is what it does different from what you expect?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!