Import Variables Illustrator CS

Please help!!

Can anyone supply me with code for importing Variables from an XML file?

I’ve tried the below but it falls over…

tell application “Illustrator CS”
activate
import variables from file “~/Documents/Automation/Illustrator/variables2.xml”
end tell

can anyone out there help…?

Thanks in advance

Davros