In XWiki we need to override DomSerializer. However since it's not coded to be extended we had to copy/paste a lot of code. It was ok so far but since a lot more code was added over the years to DomSerializer (to handle namespaces for example) we have to copy even more code and actually it doesn't even work since DomSerializer is calling non-public code (such as rootNode.getNamespaceURIOnPath(""))...
So we're stuck and need to re-implement getNamespaceURIOnPath() which is a major PITA.
It would be nice if DomSerializer could be more easily extended. I'm proposing to have 2 protected methods in it that would be called from createDOM():
WDYT?
Thanks
Sounds entirely sensible to me.
If you supply a patch and tests for this I'd be happy to review and apply them
Done. Will be in release 2.19