Hi,
Padu wrote:
> <?xml version="1.0" encoding="UTF-8"?>
> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
> xmlns:emt="http://pb123:1400/student/student.xsd"
> targetNamespace="http://pb123:1400/student/student.xsd">
>
>
> I have given this in the beginning of the xsd file.
> I have given the mapping package names by using the
> org.exolab.castor.xml.nspackages attribute in castorbuilder.properties.
>
>
> Now when I unmarshal the object to the xml, is there any way to get back the
> namespaces.
This is a bit confusing, to be honest. Let's clarify a few things: you
are trying to marshal (?) from Java objects to XML, correct ?
> Because presently i am not getting any namespace definitons in the xml
> for eg the tags appear as
> <ns4:StudenId>1</ns4:StudenId>
>
> How can I get the namespace at the beginning of the xml??
> Also why can't i get the same namespace that i defined in the xsd
>
>
> Regards,
> Padu.
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email