KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
What is the most efficient way to iterate through all DOM elements in Java? Something like this but for every single DOM elements on current org.w3c.dom.Document ? for(Node childNode = node.getFirstChild(); childNode!=null;){ Node nextChild = childNode.getNextSibling(); // Do something with childNode, including move or delete... childNode = nextChild; }
Tags (comma-separated)
Save Edits
Cancel