I try to create the following Xml using .Net, but get into trouble with my namespaces:
<?xml version="1.0" encoding="utf-8" ?> <Report xmlns="Report"> <TextElement> <Id>alarmspc.020402131042_0</Id> <Content> <Line>Testing... <Value>56</Value> Testing...</Line> </Content> </TextElement> </Report> The problem is: The value of the <Line> node is set using the .InnerXml property, linenode.InnerXml = "Testing... <Value>56</Value> Testing..."; When I look at the resulting Xml, the value tag has a xmlns attribute: <Value xmlns="Report">. While this is not wrong, it should not be neccesary, should it? I would like the resulting <Value> node to not have the redundant xmlns attribute. How do I do that? You can read messages from the DOTNET archive, unsubscribe from DOTNET, or subscribe to other DevelopMentor lists at http://discuss.develop.com.