>And the SerializerToXML.startPrefixMapping method is still empty so I
>guess it did not fix the problem.
The fact that the serializer ignores the start/endPrefixMapping calls
doesn't necessarily mean it "ignores namespaces". All the information
_should_ be available from the startElement and endElement calls, and the
serializer ought to be able to do the right thing.
> Is it correct to consider 'xmlns:java' an attribute ???
Yes. Note that the prefixMapping feature of SAX is documented (in
http://xml.apache.org/xalan-j/apidocs/org/xml/sax/ContentHandler.html) as
something most applications won't need. It's primarily intended to support
handling of prefixes that appear inside document _content_.
The serializer isn't doing anything along those lines, so discarding these
events is perfectly reasonable and the fact that this method is empty is
probably not a bug.
That doesn't necessarily mean that nothing's wrong. It does mean we should
take a step back and get a testcase that demonstrates the real problem,
then use that to determine whether the bug is in the serializer or in the
data being fed to the serializer.
What's happening that shouldn't be, and how can we reproduce it for
analysis?