Loading ...
Sorry, an error occurred while loading the content.

Accessing Attributes in Multiple/Identical Tag Names

Expand Messages
  • pyuergens
    Greetings, I know how to access an attribute buried in an xml element: (thanks for the responses) xml tag: perl code: print
    Message 1 of 1 , May 20, 2003
    View Source
    • 0 Attachment
      Greetings,

      I know how to access an attribute buried in an xml element:
      (thanks for the responses)

      xml tag:
      <sessionInfo status="Active">

      perl code:
      print $result->dataof('//VerifySessionResponse/iwsResponse/sessionInfo')->
      attr->{'status'};


      How would i access the "value" attributes specific to the "name" attributes in
      these tags

      xml tag:
      <userAttributes>
      <attribute name="UID" value="111111111" />
      <attribute name="MailCode" value="123456" />


      Thanks for your time and all the help,

      Paul Yuergens


      XML RESPONSE
      <soap:Body>
      <VerifySessionResponse xmlns="http://soap.univ.edu/ws/">
      <iwsResponse action="Verify" hasErrors="false" transactionId="0">
      <sessionInfo status="Active">
      <userAttributes>
      <attribute name="UID" value="111111111" />
      <attribute name="LastName" value="JONES " />
      <attribute name="FirstName" value="DAVEY " />
      <attribute name="Email" value="JONES@... " />
      <attribute name="MailCode" value="123456" />
      </userAttributes>
    Your message has been successfully submitted and would be delivered to recipients shortly.