What is the correct way of declaring an xml namespace?
Answer Posted / Alop Agrahari
"The correct way of declaring an XML namespace in C# is by using the xmlns attribute on an XElement or XDocument object. For example, to declare a default namespace named myNamespace for an XElement: XElement root = new XElement(XName.Get("root", "myNamespace"), ..."
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers