Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
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 studying the Monastery: (10)
As of 2014-08-28 03:42 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (255 votes), past polls