You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jaxme-dev@ws.apache.org by Satya Konkimalla <sa...@TechMahindra.com> on 2008/03/20 15:08:37 UTC
namespace problem
Hi,
I am facing a problem while I am generating XML using JAXB. I have
compiled my .xsd files using ant (my main xsd file calls other xsd
files)
When I generated the xml using JAXB I found the following
<physicalStructure>
<ns2:userLabel
xmlns:ns2="http://capabilities.om/xsd/ManagePhysicalInventory/2008/02/11
/CCM/MTOSI">Exchange</ns2:userLabel>
<ns3:owner
xmlns:ns3="http://capabilities.om/xsd/ManagePhysicalInventory/2008/02/11
/CCM/MTOSI">BT</ns3:owner>
<ns4:name
xmlns:ns4="http://capabilities.com/xsd/ManagePhysicalInventory/2008/02/1
1/CCM/MTOSI">
<ns5:name
xmlns:ns5="http://capabilities.com/xsd/ManagePhysicalInventory/2008/02/1
1/CCM/MTOSI/Enums">Physical Structure</ns5:name>
<ns6:value
xmlns:ns6="http://capabilities.com/xsd/ManagePhysicalInventory/2008/02/1
1/CCM/MTOSI/Enums">23</ns6:value>
I want to remove the name spaces from the corresponding attribute and I
am expecting my xml to get generated like this
<physicalStructure>
<ns2:userLabel >Exchange</ns2:userLabel>
<ns3:owner >BT</ns3:owner>
<ns4:name >
<ns5:name >Physical Structure</ns5:name>
<ns6:value >23</ns6:value>
How can I achieve this, waiting for the solution and thanks in advance?
Regards,
Satya
============================================================================================================================
Disclaimer:
This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at <a href="http://www.techmahindra.com/Disclaimer.html">http://www.techmahindra.com/Disclaimer.html</a> externally and <a href="http://tim.techmahindra.com/Disclaimer.html">http://tim.techmahindra.com/Disclaimer.html</a> internally within Tech Mahindra.
============================================================================================================================