Help for this page

Select Code to Download


  1. or download this
    use Test::More tests => 2;
    use XML::LibXML ();
    
    ...
        my $result = $doc->findvalue('//lastName');
        is( $result, "Hello world!", "Namespace" );
    }
    
  2. or download this
    1..2
    ok 1 - No namespace
    not ok 2 - Namespace
    ...
    #          got: ''
    #     expected: 'Hello world!'
    # Looks like you failed 1 test of 2.