In Re^2: XML parsing and Lists you wrote a query using more than one tagname which appears nowhere in the xml you posted
H5 is not H4, there is no "Part"
$ xmllint.exe --xpath " //Article//Sect//H4[ contains(.,'Include')] /.
$ xmllint.exe --xpath " count( //Article//Sect//H4[ contains(.,'Includ
+e')] /..//LI )" ma
$ xmllint.exe --xpath " count( //H4[ contains(.,'Include')] /..//LI )"
My advice is switch to font DejaVu Sans Mono, say size 11 or 12 or 20 , helps with the detailed oriented nature of programming
[id://1042546] -> XML parsing and Lists
what you posted still isn't valid xml -- XML::LibXML rejects it
madbee2.xml:24: parser error : Opening and ending tag mismatch: L line
+ 7 and Sect
madbee2.xml:25: parser error : Opening and ending tag mismatch: Sect l
+ine 3 and Main
madbee2.xml:26: parser error : Opening and ending tag mismatch: Main l
+ine 2 and Article
madbee2.xml:28: parser error : Premature end of data in tag Aritcle li
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||