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

5658SOAP::Lite Parsing question

Expand Messages
  • Steve Benzo
    Oct 11, 2006
    • 0 Attachment
      Hi,

      I'm having a problem parsing some XML in PERL with SOAP::LITE and was wondering if anyone could help me out. I'm trying to get access to the each of the networkAdmin nodes (see below) while parsing the individual networks. The way I've been trying to do this heretofore is:

       for my $t ($som->valueof('//networks/network')) {
          print $t->attr->{ID} . "\n";
       #now print each of the user admins
        #doesn't work###f or my $tt($som->valueof('networkAdmin')) {
        #doesn't work### print $tt->attr{status} . "\n";
      }

      Any help you could give so that I can access the networkAdmin nodes while parsing the individual network nodes would be appreciated. XML below:

      XML below:

      <networks>
       <network ID="1600012" name="node2">
       
         <location>ireland</location>
        <date_established>2006-06-28</date_established>
       </metadata>
       <networkAdmin UID="1" name="X" techCert="C1" status="1"/>
       <networkAdmin UID="2" name="XX" techCert="D1" status="1"/>
      </network>
          <network ID="1611400" name="nodeX">
       
          <location>utah</location>
          <date_established>1954-11-24</date_established>
       </metadata>
       <networkAdmin UID="1" name="AB" techCert="A1" status="1"/>
       <networkAdmin UID="2" name="AC" techCert="E1" status="1"/>
       <networkAdmin UID="3" name="AC" techCert="E1" status="1"/>
      </network>

      Thanks in advance!


      Get your own >web address for just $1.99/1st yr. We'll help. Yahoo! Small Business.
    • Show all 3 messages in this topic