Retrieving Information from XML file

admin

Administrator
Staff member
I have this XML file :

<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Body>
<samlp:Response
xmlns:samlp=""
ResponseID="UNIQUE_RESPONSE_ID"
<samlp:Status>
<samlp:StatusCode Value=http://www.webdeveloper.com/forum/archive/index.php/"" />
</samlp:Status>

<saml:Assertion
xmlns:saml=""
<saml:Conditions
NotBefore="yyyy-MM-ddThh:mm:ssZ"
<saml:AuthenticationStatement AuthenticationMethod=""
AuthenticationInstant="yyyy-MM-ddThh:mm:ssZ">

</saml:AuthenticationStatement>
<saml:AttributeStatement>
<saml:Subject>
<saml:NameIdentifier>User Information
</saml:NameIdentifier>
</saml:Subject>

<saml:Attribute AttributeName="SharedID">
<saml:AttributeValue>XXXXXXXX</saml:AttributeValue>
</saml:Attribute>

</saml:AttributeStatement>
</saml:Assertion>
</samlp:Response>
</env:Body>
</env:Envelope>


I am trying to use the MSXML 2 object in ASP to retrieve values from it. I am trying to return the ResponseID from line and SharedID attribute value on line 39.

Can anybody help please.
 
Back
Top