Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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: (10)
As of 2014-07-23 22:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (153 votes), past polls