• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Iterating a java NodeList

 
Dorothy Taylor
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

Java 7 does not provide iteratable NodeList. I checked on forums and created an interface like this :


Next in my Java class I had as below:


However, the above code gives me an exception at the point of cast:


Could anyone please suggest how to fix this. Infact I am not even importing apache library. I dont know why apache is throwing exception
 
Consider Paul's rocket mass heater.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic