I suggest to convert the $xmlInputType to a boolean, like
    $includeXmlHeader = true