<?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.
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.
-- 
View this message in context: 
http://www.nabble.com/Is-there-any-way-to-get-back-the-namespaces-when-I-unmarshal-the-object-to-the-xml-tp20971371p20971371.html
Sent from the Castor - User mailing list archive at Nabble.com.


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

    http://xircles.codehaus.org/manage_email


Reply via email to