Python minidom parser: Ignore tag with identical attribute values
===

trying to parse xml to text I got something like this,

INPUT FILE

    <Item id="1"></Item>
    <Item id="2"></Item>
    <Item id="1"></Item>
    <Item id="2"></Item>

CURRENT OUTPUT

     Item ->1
     Item ->2
     Item ->1
     Item ->2

My DESIRED OUTPUT would be,

    Item ->1
    Item ->2

(Ignoring repeated id values)

The current code I'm using to obtain my CURRENT OUTPUT is,

    list = node.getElementsByTagName('Item')
    for item in list:
      output_id = item.getAttribute('id')
      print "Item ->", output_id

I've tried thousands of list remove methods but they all output the double ids. Help would be greatly appreciated.
Tks