title: Parsing the XML for the schema location with Xstream
body: <p>I'm having trouble finding out the schema location from the XML using the <a href="http://xstream.codehaus.org/index.html" rel="nofollow">xstream</a>.</p>
  
  <pre><code>&lt;order xmlns="http://www.mycompany.com/xml/myproject"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="test.xsd"&gt;
  </code></pre>
  
  <p>For validation of the XML, with the schema, I'm using the javax :</p>
  
  <pre><code>Validator validator = schema.newValidator();
  validator.validate(source);
  </code></pre>
  
  <p>For now I've hardcoded the schema name as "test.xsd", but I hope that is just a temporary fix.</p>