[ https://issues.apache.org/jira/browse/WSCOMMONS-327?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12654843#action_12654843 ]
Philippe Mouawad commented on WSCOMMONS-327: -------------------------------------------- Thank you very much for your answer, just to be explicit, code will be: SAXOMBuilder builder = new SAXOMBuilder(); document.save(builder, null, xmlOptions); OMElement element = builder.getRootElement(); In your opinion what is the performance loss ? Is it important ? I will submit a patch on AXIS 2 to change the Skeleton/Stub templates. Philippe. > Namespace High verbosity combined with XMLBeans > ----------------------------------------------- > > Key: WSCOMMONS-327 > URL: https://issues.apache.org/jira/browse/WSCOMMONS-327 > Project: WS-Commons > Issue Type: Bug > Components: AXIOM > Environment: All > Reporter: Philippe Mouawad > Assignee: Andreas Veithen > Attachments: NamespaceBug.zip > > > Serializing an XMLBeans generated Document with: > org.apache.axiom.om.impl.builder.StAXOMBuilder builder = new > org.apache.axiom.om.impl.builder.StAXOMBuilder( > OMAbstractFactory.getOMFactory(), > new > org.apache.axis2.util.StreamWrapper(document.newXMLStreamReader(xmlOptions))); > org.apache.axiom.om.OMElement documentElement = builder > .getDocumentElement(); > > ((org.apache.axiom.om.impl.OMNodeEx)documentElement).setParent(null); > documentElement.serialize(System.out, new OMOutputFormat()); > Generated stream contains namespace redeclaration : > <getLocatedProducts > xmlns="http://v1.product.ws.store.kingfisher.com"><param0><callType > xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</callType><familyCode > > xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</familyCode><moduleCode > > xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</moduleCode><subFamilyCode > > xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</subFamilyCode></param0><param0><callType > > xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</callType><familyCode > > xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</familyCode><moduleCode > > xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</moduleCode><subFamilyCode > > xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</subFamilyCode></param0><param0><callType > > xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</callType><familyCode > > xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</familyCode><moduleCode > > xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</moduleCode><subFamilyCode > > xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</subFamilyCode></param0><param0><callType > > xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</callType><familyCode > > xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</familyCode><moduleCode > > xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</moduleCode><subFamilyCode > > xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</subFamilyCode></param0><param0><callType > > xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</callType><familyCode > > xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</familyCode><moduleCode > > xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</moduleCode><subFamilyCode > > xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</subFamilyCode></param0><param0><callType > > xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</callType><familyCode > > xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</familyCode><moduleCode > > xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</moduleCode><subFamilyCode > > xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</subFamilyCode></param0><param0><callType > > xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</callType><familyCode > > xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</familyCode><moduleCode > > xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</moduleCode><subFamilyCode > > xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</subFamilyCode></param0><param0><callType > > xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</callType><familyCode > > xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</familyCode><moduleCode > > xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</moduleCode><subFamilyCode > > xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</subFamilyCode></param0><param0><callType > > xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</callType><familyCode > > xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</familyCode><moduleCode > > xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</moduleCode><subFamilyCode > > xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</subFamilyCode></param0><param0><callType > > xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</callType><familyCode > > xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</familyCode><moduleCode > > xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</moduleCode><subFamilyCode > > xmlns="http://data.v1.product.ws.store.kingfisher.com/xsd">1</subFamilyCode></param0></getLocatedProducts> -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.