Add support for getting the resourceId attribute of an element