![]() |
|
Welcome to the Monastery | |
PerlMonks |
Entity error in XML::XPATHby cognizant (Pilgrim) |
on Mar 03, 2006 at 11:19 UTC ( #534193=perlquestion: print w/replies, xml ) | Need Help?? |
cognizant has asked for the wisdom of the Perl Monks concerning the following question:
Monks,
I wanna extract specific elements from the xml file (Example: h1/title). I have tried using XML:XPATH as follows:
I got parsing error b'cos of entities. Hence i've replaced all the entities with some other characters and after extracting all the tags i've replaced back the original entites. I got the result which i need. I'm sure that there is a better way to do this. Could u pls suggest me the better way? Cheers --C Update: sample xml file
Error:
Perl code
Back to
Seekers of Perl Wisdom
|
|