We could gather "footnote" XML elements as an array. But we need to filter the elements which has "role=endnote" in the attributes from the group of common footnote tagged elements .
Eg. <footnote xml:id="en2" label="2" role="endnote"> from myGetXMLElements("//footnote")
Kindly assist to get footnote XML elements which has the role "endnote".
Take a look at the XML rules chapters in the Scripting Guide.
Yes, I got it. Thanks