Below are the first few lines of the xml I get and the mapping. I do not 
understand why I am getting the empty tag for xmlns, however the other 
namespaces come fine.
XML File :
<ClinicalDocument xmlns:voc="urn:hl7-org:v3/voc" 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="urn:hl7-org:v3 CDA.xsd" xmlns="">  <typeId 
root="2.16.840.1.113883.1.3" extension="POCD_HD000040" />     
---------------------------------    
-------------------------</ClinicalDocument>
Mapping File:
<mapping>   <class name="org.abc.xyv.model.ClinicalDocument">    <map-to 
xml="ClinicalDocument" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";    
      xsi:schemaLocation="urn:hl7-org:v3 infrastructure/cda/CDA.xsd"          
xmlns="urn:hl7-org:v3"          xmlns:voc="urn:hl7-org:v3/voc"/>            
<field name="typeId" type="org.telligen.patientsafety.model.TypeId">            
<bind-xml name="typeId"/>    </field>      -----      
-----------------</mapping>
In my code to marshal I do Marshaller m = new Marshaller(), 
m.setNameSpace..("voc", "urn:hl7-org:v3/voc"); 
setNameSpace..("","urn:hl7-org:v3/voc");I am expecting the output xml to have 
the namespace xmlns="urn:hl7-org:v3/voc" but I get xmlns="" but get rest of the 
declaration. Not sure what am I doing wrong?Thanks,Priya                        
                                                                                
 

Reply via email to