fix createXMLView

use $filename argument correctly