Home › Forums › General XMetaL Discussion › ID List Retrieval › Reply To: ID List Retrieval
Reply to: ID List Retrieval
August 4, 2011 at 6:45 amIt depends on what you need to do with this information afterwards. If you need to visit each node to change it in some way it can be more efficient to walk the document element by element (there are various APIs for moving between nodes or elements) and check each for an @ID. If you just need to gather the list of nodes for use elsewhere then getNodesByXPath may be more efficient.