here is my xml
<service namespcae="test">
<entity-definition>
<ent:entity name="aEntity" xmlns:ent="http://re
isys.com/fema/ognt/schema/entity">
</ent:entity>
</entity-definition>
</service>
The code to create this is
ServiceDocument vServiceDocument=
ServiceDocument.Factory.newInstance();
Service vService=vServiceDocument.addNewService();
vService.setNamespace(INameSpaces.NAMESPACE);
EntityDefinition vEntityDefinition=
vService.addNewEntityDefinition();
vEntityDefinition.setEntityArray[is the object passed to this method
it is from database blob ];
XmlOptions vXmlOptions=new XmlOptions();
vXmlOptions.setUseDefaultNamespace();
vServiceDocument.xmlText(vXmlOptions)
My problem is calling vXmlOptions.setUseDefaultNamespace()
only strips namespace prefix from the service element and its child elements
which are created in the hirearchy.
But the entity element is not created but added to this service element
from database blob so xmlOtpions .setUseDefaultNamespace() does not remove
prefix from entity element.
Is there any way I can remove prefix from entire document ?
---------------------------------
Never miss an email again!
Yahoo! Toolbar alerts you the instant new Mail arrives. Check it out.