Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
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 chanting in the Monastery: (17)
As of 2015-07-30 15:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (272 votes), past polls