• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

technorati api parsing

 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?

 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
reply
    Bookmark Topic Watch Topic
  • New Topic