Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^4: XML parsing and Lists (xpathcontext)

by Anonymous Monk
on Jul 05, 2013 at 01:30 UTC ( #1042558=note: print w/ replies, xml ) Need Help??


in reply to Re^3: XML parsing and Lists
in thread XML parsing and Lists

well, you're not really using xpathcontext for anything, so it isn't required , this works

$dom->find('count(//Article//Sect//LI)' );


Comment on Re^4: XML parsing and Lists (xpathcontext)
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (9)
As of 2016-02-12 15:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (403 votes), past polls