afroblanca
Programmer
Hello,
I'm using XML in two different situations, and both call for an XML namespace. I'm new to XML, and am not even sure what an XML namespace is or why I need one.
In the first situation, I'm using XPath to query an XML document. The method XPathNavigator.GetAttribute takes a NamespaceURI argument. Right now, I just supply an empty string for this argument, and everything works fine. Am I doing this correctly, or should I be doing something different?
In the second situation, I have an XML web service. In many places, the code requires an XML namespace. The code-generation tool supplies , however, when I go to tempuri.org, it is suggested that I change this to something else. Why do I need to change it, and what do I need to change it to? What happens if I don't change it, and just use tempuri.org?
Finally, does anybody know of a good, brief tutorial that explains what XML namespaces are and what they're used for?
Thank you for your help.
I'm using XML in two different situations, and both call for an XML namespace. I'm new to XML, and am not even sure what an XML namespace is or why I need one.
In the first situation, I'm using XPath to query an XML document. The method XPathNavigator.GetAttribute takes a NamespaceURI argument. Right now, I just supply an empty string for this argument, and everything works fine. Am I doing this correctly, or should I be doing something different?
In the second situation, I have an XML web service. In many places, the code requires an XML namespace. The code-generation tool supplies , however, when I go to tempuri.org, it is suggested that I change this to something else. Why do I need to change it, and what do I need to change it to? What happens if I don't change it, and just use tempuri.org?
Finally, does anybody know of a good, brief tutorial that explains what XML namespaces are and what they're used for?
Thank you for your help.