Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>You can use the bindings tag. Set the schemaLocation attribute to the location of a particular xsd. The child tags, schemaBindings and package, then define a new package namespace for that xsd. Below is the bindings file I used with xjc a while ago. If it still works, great. If not, example =).</p> <pre><code>&lt;?xml version="1.0" ?&gt; &lt;bindings xmlns="http://java.sun.com/xml/ns/jaxb" version="2.1" xmlns:kml="http://www.opengis.net/kml/2.2" xmlns:atom="http://www.w3.org/2005/Atom"&gt; &lt;bindings schemaLocation="ogckml22.xsd"&gt; &lt;schemaBindings&gt; &lt;package name="net.opengis.kml"/&gt; &lt;/schemaBindings&gt; &lt;/bindings&gt; &lt;bindings schemaLocation="kml22gx.xsd"&gt; &lt;schemaBindings&gt; &lt;package name="net.opengis.kml.ex"/&gt; &lt;/schemaBindings&gt; &lt;/bindings&gt; &lt;bindings schemaLocation="atom-author-link.xsd"&gt; &lt;schemaBindings&gt; &lt;package name="org.w3c.atom"/&gt; &lt;/schemaBindings&gt; &lt;/bindings&gt; &lt;bindings schemaLocation="xAL.xsd"&gt; &lt;schemaBindings&gt; &lt;package name="org.oasis.xal"/&gt; &lt;/schemaBindings&gt; &lt;/bindings&gt; &lt;bindings scd="kml:scale"&gt; &lt;class name="scaleliteral"/&gt; &lt;/bindings&gt; &lt;bindings scd="kml:snippet"&gt; &lt;class name="snippetliteral"/&gt; &lt;/bindings&gt; &lt;bindings scd="kml:Snippet"&gt; &lt;property name="snippetDeprecated"/&gt; &lt;/bindings&gt; &lt;bindings scd="atom:link"&gt; &lt;property name="atomLink"/&gt; &lt;/bindings&gt; &lt;/bindings&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload