Hi Boris, thank you, that helped. Now there are still lines like "<g2:Unit...", which should be "<Unit...". When adding doc_s.add_prefix("", "XTest.XBase.Domain"); I get Serializer exception: xml error. duplicate prefix How can I resolve this? Best regards, Werner