title: How to validate XML against its XML Schema without local XSD file?
body: <p>This is my XML:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;root xmlns="http://example.com/first-schema.xsd"
    xmlns:f="http://example.com/second-schema.xsd"&gt;
    &lt;f:foo&gt;test&lt;/f:foo&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p>Now I want to validate whether this XML is XMLSchema-valid. I don't have these <code>first-schema.xsd</code> and <code>second-schema.xsd</code> files locally. Moreover, I don't know anything about them. I just want to make sure that my XML document is valid against <strong>its</strong> schemas. Is it possible to do in Java?</p>