Home › Forums › General XMetaL Discussion › Get nodelist from Selection/Range? › Reply To: Get nodelist from Selection/Range?
Reply to: Get nodelist from Selection/Range?
September 12, 2012 at 4:26 pmDoes getNodesByXPath() help you here? That is the first thing I can think of that requires the least amount of code.
The DOMElement object has this as a method. You can use Selection.ContainerNode to get the node for the current selection's immediate parent.