Is anyone aware of how to include the "schemaLocation" within the xml
document during the marshalling process? I think I'm looking for a way to
set the schemaLocation within the my fooMapping.xml file. From looking
inside the Marshaller class and the existing documentation it appears that
I can only set the namespace uri (note example fooMapping.xml):

<xml version="1.0">
<mapping>
  <class name="com.company.Class">
    <map-to xml "TheClass"
                      ns-uri="http://Company.com/schema"; />
...


The mapping file for schema does not appear to have a marker for
schemaLocation (only table, xml, ns-uri, ns-prefix, ldap-dn, ldap-oc).

Specifically, I'd like the marshalled xml file to appear as:

<?xml version="1.0"?>
<FlifoRequest xmlns="http://Company.com/schema"; xmlns:xsi="
http://www.w3.org/schema/2001/XMLSchema-instance"; xsi:schemaLocation="
http://Company.com/schema http://Company.com/schema/MySchema.xsd";>
...

but unfortunately I can only get the Marshaller to create this xml file:

<?xml version="1.0"?>
<FlifoRequest xmlns="http://Company.com/schema";>
...


As a side note, my schema file starts with:

<xs:schema targetNamespace="http://Company.com/schema"; xmlns="
http://Company.com/schema"; xmlns:xs="http://www.w3.org/2001/XMLSchema";
elementFormDefault="qualified" attributeFormDefault="unqualified" version="
0.0.0">

...

Any help or direction would be greatly appreciated.

Thank you,

Winthrop Short

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to