// DIE's signature file

init("source","XML");

function detect(bShowType,bShowVersion,bShowOptions)
{
    var sText=Binary.getHeaderString();
    // Ignore the UTF-8 BOM.
    if(/^(?:\xef\xbb\xbf)?<\?xml/.test(sText))
    {
        var aVersion=sText.match(/version="(.*?)"/);
        if(aVersion)
        {
            sVersion=aVersion[1];
        }

        bDetected=1;
    }

    return result(bShowType,bShowVersion,bShowOptions);
}
