I want to create an XDocument with what will look like below:
<configurations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://msn.com/csl/featureConfigurationv2">
<configuration>
β¦
</configuration>
</configurations>
I have to deal with the problem of adding a second attribute. I try this:
XYZ.Element("configurations").SetAttributeValue("xmlns", "http://msn.com/csl/featureConfigurationv2");
But it does not add an attribute.
Can you suggest something else please.
source
share