Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Counting number of child nodes based on element value (typos)

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

Help for this page

Select Code to Download


  1. or download this
    $ xmllint.exe --xpath " //Article//Sect//H4[ contains(.,'Include')] /.
    +.//LI" madbee.xml
    <LI>
                        <LI_Label>1.</LI_Label>
    ...
    $ xmllint.exe --xpath " count( //H4[ contains(.,'Include')] /..//LI )"
    + madbee.xml
    4
    $
    
  2. or download this
    madbee2.xml:24: parser error : Opening and ending tag mismatch: L line
    + 7 and Sect
            </Sect>
                   ^
    ...
    madbee2.xml:28: parser error : Premature end of data in tag Aritcle li
    +ne 1
    
    ^
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1042653]
help
Chatterbox?
[sierpinski]: What does this do? my $j = $#$list;
[sierpinski]: I've never seen $#$var before.
[LanX]: $list cops be an array ref
[LanX]: could
[LanX]: $#array gives the length
[LanX]: no sorry ...
[sierpinski]: so that would just be deferencing it...
[LanX]: the last index!
[LanX]: yes
[sierpinski]: yeah I guess $list is a reference.. yeah

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (14)
As of 2017-12-13 15:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (369 votes). Check out past polls.

    Notices?