Help for this page

Select Code to Download


  1. or download this
    <result xmlns="http://www.test.com/integration/integration">
    
  2. or download this
    my $xpc = XML::LibXML::XPathContext->new($doc);
    $xpc->registerNs('t', 'http://www.test.com/integration/integration');
    foreach my $book_node ($xpc->findnodes('/t:books/t:book') ) {
        say "book name is " .$book_name->findvalue('/t:name');
    }