laziness, impatience, and hubris | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
"Fwiw the change of quoting you suggested doesn't actually fix my mistake." My apologies if the change in quoting was misinterpreted as part of the fix. The change from //vm to //matrix/vm was the fix. You had multiple instances of \' and \@ (within double-quoted strings) throughout your post: the quoting change was a cure for backslashitis. :-) Here's the test I ran prior to posting:
Output:
As you can see, there's no backslashes here at all (which I find makes the code more readable). The '//matrix/vm[@type="br"]' solution which I posted in my original reply was copied directly from that. If you want to run that test (or modifiy it for other tests), the data I used (pm_1082058_n4000-small.xml) is in the spoiler below. <Reveal this spoiler or all in this thread>
-- Ken In reply to Re^3: xpath problem using XML::LibXML
by kcott
|
|