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 13, 2012 at 3:02 amAwesome, thanks.
So, I think an easier answer just slapped me across the face:
[code]
var rng = Application.ActiveDocument.Range;
var selectionXMLString = “
var xmlDoc = new ActiveXObject(“msxml2.DOMDocument”);
xmlDoc.loadXML(selectionXMLString);
var nodes = xmlDoc.documentElement.childNodes;
[/code]