Hi,
I want to retrieve all the namespaces associated with a specific node. For example, consider the following node:
<animal xmlns='www.animals.com' xmlns:dogs='www.animals.com/dogs' xmlns:cats='www.animals.com/cats'>
Using XPathDocument I load the xml file, create a navigator, and use the Namespace property to get the associated namespace (
www.animals.com) for this node. I would like to retrieve all the namespaces and not just the default namespace (i.e. 'www.animals.com', 'www.animals.com/dogs', and ''www.animals.com/cats').
How can I do this?
Thanks!