I generated a java class, Menu (and descriptor), using the XML schema code
embedded below. Then I used MappingTool to produce the mapping file (also
embedded). How to I produce a mapping file without a prefix ("ns1")?XML SCHEMA (input) <?xml version="1.0" encoding="UTF-8"?> <xsd:schema targetNamespace="http://automationgroups.com/2002/agml" xmlns:agml="http://automationgroups.com/2002/agml" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <xsd:element name="menu" type="menu.type"> <xsd:complexType> <xsd:sequence> <xsd:element maxOccurs="1" minOccurs="0" name="name" type="xsd:string"/> <xsd:element name="pos" type="xsd:integer"/> </xsd:sequence> </xsd:complexType> </xsd:element> </xsd:schema> MAPPING FILE (output) <?xml version="1.0" encoding="ISO-8859-1"?> <ns1:mapping xmlns:ns1="http://castor.exolab.org/"> <ns1:description>Castor generated mapping file</ns1:description> <ns1:include xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="java:java.lang.String"/> <ns1:class ns1:access="shared" ns1:identity="" ns1:name="com.automationgroups.ag.test.Menu"> <ns1:description>Default mapping for class com.automationgroups.ag.test.Menu</ns1:description> <ns1:map-to ns1:ns-uri="http://automationgroups.com/2002/agml" ns1:xml="menu"/> <ns1:field ns1:name="_name" ns1:type="java.lang.String"> <ns1:bind-xml ns1:name="name" ns1:node="element"/> </ns1:field> <ns1:field ns1:name="_pos" ns1:required="true" ns1:type="int"> <ns1:bind-xml ns1:name="pos" ns1:node="element"/> </ns1:field> <ns1:container xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="java:java.lang.String"/> </ns1:class> <ns1:key-generator xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="java:java.lang.String"/> </ns1:mapping> Al Byers [EMAIL PROTECTED] ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
