Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
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?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (12)
As of 2015-07-31 18:34 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 (280 votes), past polls