This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
This would return all the elements having the tagName specified going down to all the children of the element el. I would like to get only the immediate child elements of el having the tagName specified. Is there a way to do in DOM parsing?
I cannot change it to SAX parsing since the above code is a part of a pretty large project.