Hi Ramesh,

are you actually generating sources from the XML schema ?

Regards
Werner

On 11.11.2010 10:20, ramesh narasimhan wrote:

Hi,

I had an issue on marshalling the XML schema using castor 1.3.1 for
namespaces. I want to print all the namespaces in the root element.

Present generated XMl schema is:

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
-<ns1:Top xmlns:ns1="http://www.w3.org/2003/05/ns1-top";>
-<ns1:Head>
        -<ns2:head xmlns:ns2="http://www.abc.com/xyz/a2";>
                <ns2:labelName>QUERY</ns2:labelName>
        </ns2:head>
   </ns1:Head>
-<ns1:Body>
        -<ns3:person xmlns:ns3="http://www.abc.com/xyz/a3";>
                <ns4:name 
xmlns:ns4="http://www.abc.com/xyz/a4";>SUCCESS</ns4:name>
        </ns3:person>
   </ns1:Body>
   </ns1:Top>

Actual XMl schema should be:

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
-<ns1:Top xmlns:ns3="http://www.abc.com/def";
         xmlns:tems="http://www.abc.com/xyz/a1";
         xmlns:ns4="http://www.abc.com/xyz/a1";
         xmlns:ns1="http://www.w3.org/2003/05/ns1-top";>
-<ns1:Head>
        -<ns2:head>
                <ns2:labelName>QUERY</ns2:labelName>
        </ns2:head>
   </ns1:Head>
-<ns1:Body>
        -<ns3:person>
                <ns4:name>SUCCESS</ns4:name>
        </ns3:person>
   </ns1:Body>
   </ns1:Top>

Please help me out in this issue.

thanks,
Ramesh

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to