importing xtags

I have made some xtag files which when actioned manually work fine. When I try to import text file it only comes through in ascii text. I am obviosuly doing something wrong so how do I import xtag files into quark.

I believe you need to do something like this:

tell application "QuarkXPress*"
	set properties to {import styles:true}
	tell document 1
		set story 1 to theText -- where theText is your file
	end tell
end tell