| .NET DotNet Forum Index » XML Forum » Detect Default namespace (Unkown)... |
|
Page 1 of 1 |
|
| Author |
Message |
| AGP... |
Posted: Thu Jul 02, 2009 1:48 am |
|
|
|
Guest
|
I am trying to parse out an XMl file and have it all working except there
are occasions whe the default namesapce will change and i need to account
for it. The namespace can be
xmlns="http://data.usgs.gov/mag/1.0"
or
xmlns="http://data.usgs.gov/mag/2.0"
or
xmlns="http://data.usgs.gov/dec/2.8"
These are examples and there could be many more.The data is more or less in
the same format as far as nodes and node names but how do I account for the
various namespaces. I will not know these ahead of time so was hoping there
was a way to parse these out of the header.
tia
AGP |
|
|
| Back to top |
|
|
|
|