title: How can I say a file is SVG without using a magic number?
body: <p>An <code>SVG</code> file is basically an <code>XML</code> file so I could use the string <code>&lt;?xml</code> (or the hex representation: <code>'3c 3f 78 6d 6c'</code>) as a magic number but there are a few opposing reason not to do that if for example there are extra white-spaces it could break this check.</p>
  
  <p>The other images I need/expect to check are all binaries and have magic numbers. How can I fast check if the file is an <code>SVG</code> format without using the extension eventually using Python?</p>