InDesign XML tag contents

I’ve been trying to work with InDesign’s XML tags. I have several documents with XML tags. I want to access the text of only certain tags, but can’t seem to figure out how to navigate the tags.

I’ve been trying things like this to access just the tags I want…

set tagData to select every XML item of document 1 whose XML tag name = "Data"

but this doesn’t seem to return reference to the tags I want.

Any help would be greatly appreciated.

Thanks,
Dave