C
CSharper
I need to set an atribute to an xml element, I know how to do it with
XElement.SetAttributeValue method. But What I am trying to do is, I
need to add a attribute with a namespace like the following
test:name="tester"
When I try to add, it fails with : not a valid character in attribute.
So my question is
How do I go about adding the new namespace to XDocument and also the
the attribute so that set attribute value doesn't fail.
Thanks you very much
XElement.SetAttributeValue method. But What I am trying to do is, I
need to add a attribute with a namespace like the following
test:name="tester"
When I try to add, it fails with : not a valid character in attribute.
So my question is
How do I go about adding the new namespace to XDocument and also the
the attribute so that set attribute value doesn't fail.
Thanks you very much