Help for this page

Select Code to Download


  1. or download this
    use XML::LibXML ;
    use strict;
    ...
        my $result = $doc->findvalue('//lastName');
        print $result ;
    }
    
  2. or download this
    use XML::LibXML;
    use XML::LibXML::XPathContext;
    ...
        my $result = $xc->findvalue('//sdnList:lastName');
        is( $result, "Hello world!", "Namespace" );
    }
    
  3. or download this
    <rsp stat="ok">
    <sizes canblog="1" canprint="0" candownload="0">
    ...
    <size label="Large" width="1024" height="683" source="http://farm5.sta
    +tic.flickr.com/4007/4673769513_02826f0775_b.jpg" url="http://www.flic
    +kr.com/photos/dhushor-jen/4673769513/sizes/l/" media="photo"/>
    </sizes>
    </rsp>
    
  4. or download this
    <rsp stat="fail">
    <err code="1" msg="Photo not found"/>
    </rsp>