Not a simple way, no. The IndexedRegion is a generic interface for
mapping objects to document offsets, not specific to any language
that's implemented, and for the XML DOM it's done with child nodes
of the document, not with their attribute nodes. Once you have the
main node, however, getting its attributes and using the offset
information through the IDOMAttr interface should get you where you
want to go. Directly comparing the name and value text regions of
an Attr node against those returned through the IDOMNode interface
may also work.
--
---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational