Write a python script that parses a XML file, for each line it checks if a 'ref' attribute exists, and if it does it stores the value in a list. In the end it prints the list. There should be exactly 6 paragraphs separated by the markdown divider: ***.
user