Hello,
I'm receiving a response XML doc and need to know which letter was assigned
by the server to a namespace.
For example, here's a doc that I got returned to me. I need to extract the
"subject", so I need to know that "e" was assigned because I'm using the
..Net "GetElementsByTagName" method: (GetElementsByTagName("e:subject")):
<?xml version="1.0"?>
<a:multistatus xmlns:b="urn:uuid:c2f41010-65b3-11d1-a29f-188741245e/"
xmlns:e="urn:schemas:httpmail:" xmlns:f="urn:schemas:mailheader:"
xmlns:c="xml:" xmlns:d="urn:schemas:calendar:" xmlns:a="DAV:">
<a:response>
<a:href>http://mail.mydomain.com/exchdav/milop/Installations/APPT2006699141633.eml</a:href>
<a:propstat>
<a:status>HTTP/1.1 200 OK</a:status>
<a:prop>
<d:location>HOME</d:location>
<e:subject>SUBJECT</e:subject>
<d:contact>MILOP CONTACT</d:contact>
<d:dtstart b:dt="dateTime.tz">2006-06-09T08:00:00.000Z</d:dtstart>
<d:dtend b:dt="dateTime.tz">2006-06-09T08:00:00.000Z</d:dtend>
<d:instancetype b:dt="int">0</d:instancetype>
<f:message-id>2006-06-09-09.13.55.732000</f:message-id>
</a:prop>
</a:propstat>
<a:propstat>
<a:status>HTTP/1.1 404 Resource Not Found</a:status>
<a:prop>
<d:busystatus/>
<f:content-location/>
</a:prop>
</a:propstat>
</a:response>
</a:multistatus>
Is there a quick XPath expression or something in System.XML that will aid
in this?
Thanks in advance,
Mike