R
Ron Harter
I have an XML DOM that contains a response from a server
it looks somethng like this:
<?xml version="1.0"?>
<a:multistatus xmlns:b="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/"
xmlns:e="urn:schemas:httpmail:" xmlns:d="urn:schemas:mailheader:"
xmlns:c="xml:" xmlns:f="urn:schemas-microsoft-comfficeffice"
xmlns:a="DAV:">
<a:response>
<a:href>SomeData/a:href>
<aropstat>
<a:status>HTTP/1.1 200 OK</a:status>
<arop>
<a:href>SomeData</a:href>
<a:uid>AQEAAAAACKqfAAAAAAAAAAAAAAAA</a:uid>
</arop>
</aropstat>
<aropstat>
<a:status>HTTP/1.1 404 Resource Not Found</a:status>
<arop>
<d:cc/>
</arop>
</aropstat>
</a:response>
<a:response>
<a:href>SomeMoreData</a:href>
<aropstat>
<a:status>HTTP/1.1 200 OK</a:status>
<arop>
<a:href>SomeMOreData</a:href>
<a:uid>AQEAAAAACKqgAAAAAAAAAAAAAAAA</a:uid>
</arop>
</aropstat>
<aropstat>
<a:status>HTTP/1.1 404 Resource Not Found</a:status>
<arop>
<d:cc/>
</arop>
</aropstat>
</a:response>
There can be an arbitrry number of response elements in the document.
I am able to get the number of responses elements in the document so I can
llop through each on the responses
nodes. The problem I have is I can't figure out how to access the named
elements inside the nodelist that i create
Am I going about this the wrong way? How do I access the elements by name in
each seperate response element tree?
I am using MSXML to do this
it looks somethng like this:
<?xml version="1.0"?>
<a:multistatus xmlns:b="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/"
xmlns:e="urn:schemas:httpmail:" xmlns:d="urn:schemas:mailheader:"
xmlns:c="xml:" xmlns:f="urn:schemas-microsoft-comfficeffice"
xmlns:a="DAV:">
<a:response>
<a:href>SomeData/a:href>
<aropstat>
<a:status>HTTP/1.1 200 OK</a:status>
<arop>
<a:href>SomeData</a:href>
<a:uid>AQEAAAAACKqfAAAAAAAAAAAAAAAA</a:uid>
</arop>
</aropstat>
<aropstat>
<a:status>HTTP/1.1 404 Resource Not Found</a:status>
<arop>
<d:cc/>
</arop>
</aropstat>
</a:response>
<a:response>
<a:href>SomeMoreData</a:href>
<aropstat>
<a:status>HTTP/1.1 200 OK</a:status>
<arop>
<a:href>SomeMOreData</a:href>
<a:uid>AQEAAAAACKqgAAAAAAAAAAAAAAAA</a:uid>
</arop>
</aropstat>
<aropstat>
<a:status>HTTP/1.1 404 Resource Not Found</a:status>
<arop>
<d:cc/>
</arop>
</aropstat>
</a:response>
There can be an arbitrry number of response elements in the document.
I am able to get the number of responses elements in the document so I can
llop through each on the responses
nodes. The problem I have is I can't figure out how to access the named
elements inside the nodelist that i create
Am I going about this the wrong way? How do I access the elements by name in
each seperate response element tree?
I am using MSXML to do this