You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Thomas Guettler <gu...@interface-business.de> on 2000/12/18 13:20:47 UTC

Serializer + Namespace Problem

When I serialize a element the namespace is not serialized:

itemElement.setAttributeNS("xlink", "href", "foo")

Result looks like:

<mycompanies href="foo">0</mycompanies>

but should look like:

<mycompanies xlink:href="foo">0</mycompanies>

I use Xerces-J 1.2.3. I create the serializer like this:

XMLSerializer xs=new XMLSerializer(System.err, new 
  OutputFormat(doc, null, true));
xs.serialize(doc);

Please help!

-- 
Thomas Guettler
Office: <gu...@interface-business.de> www.interface-business.de
Private:<gu...@gmx.de>  http://yi.org/guettli