In .Net I do this:
XmlNamespaceManager nsMan = new XmlNamespaceManager(xmlDoc.NameTable);
XmlNodeList nlImages = xmlDoc.SelectNodes("//v:imagedata", nsMan);
And I get this exception:
Namespace prefix 'v' is not defined.
But if I break the process and write this statement:
xmlDoc.NameTable.Get("v")
I get "v" out, so the namespace is defined ...right?
Anyway, in order to get this to work I have to add this:
nsMan.AddNamespace("v", "urn:schemas-microsoft-com:vml");
To get that XPath query to work (I checked and the v namespace is defined in the source xml document), so why doesn't this work as it seems it should?
Thanks for the helps,
-nomad311