dwo:When I use C# (with appropriate modifications), the code seems to work just fine.
Because there's yet another hidden implicit conversion ;) .
new XAttribute(XName.op_Implicit "xmlns", "gptg:PMSA:gptg.net")PS: Have a look at the conversion operator: http://cs.hubfs.net/forums/thread/11111.aspx