Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Namespaced XML::LibXML XPath query

by diotalevi (Canon)
on Feb 15, 2006 at 20:45 UTC ( #530519=perlquestion: print w/ replies, xml ) Need Help??

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.
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://530519]
Approved by astaines
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (9)
As of 2014-08-01 03:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (256 votes), past polls