Hello Simon.
> That is pretty much what I am doing, and is exactly why I suggested > adding the <xsl:strip-space> tag in a stylesheet.
I tried <xsl:strip-space> but this has no effect as long as one does not apply any xslt.
> Now I presume that you aren't using stylesheets at all? It sounds > like you are just parsing using Xerces, deleting nodes using xerces > (or perhaps xpath?), then using the Xalan serializer to dump the DOM > to disk? In this case you will need to find some equivalent to > calling <xsl:strip-space elements="*">. From memory, isn't there a > Node.normalizeSpace() method? I think this is what you want...
That is right.
There is a normalize() Method on org.w3c.dom.Node, but it does not effect the indention of the serializer. The original indention is preserved.
I think the Xerces DOMSerializer for DOM Level 3 would be much more appropriate, but I could not find implementing classes for the interface (or factories) in Xerces.
Thanks again for your help! Ralf
