Hi, I need to use the LSSerializer provided by xerces to serialize a DOM document subtree without namespaces completion processing, i.e., the desired output is just the xml serialization of the subtree as one could extract it by selection from the whole document serialization.
To this end, if I understood well, setting the property "namespaces" to "false" the normalization algorithm described in Appendix B1 of Dom Level 3 specification should be skipped. I'm using this code: but it doesn't have effect. What is wrong? Is the "namespaces" properties setting working in Xerces LSSerializer implementation ? DOMImplementationLS impl = (DOMImplementationLS)registry.getDOMImplementation("LS"); LSSerializer writer = impl.createLSSerializer(); DOMConfiguration domConfig = writer.getDomConfig(); domConfig.setParameter("namespaces",Boolean.FALSE); String str = writer.writeToString(node); Thanks for any help, Tommaso