XP is just a number | |
PerlMonks |
Re: Parsing HTML/XML with Regular Expressions (XML::Twig)by Discipulus (Canon) |
on Oct 16, 2017 at 22:00 UTC ( [id://1201473]=note: print w/replies, xml ) | Need Help?? |
Hello haukex I normally use XML::Twig in the sad occasions I need to deal with XML. With small xml data i use __DATA__ and $twig->parse(<DATA>) but with your sample I got no element found at line 2, column 0, byte 39 at.. even if W3C validator parses the file as correct. Using a real file I had no errors. I dunno why and I rarely inspect XML with my eyes; doctor said is no good ;=) I have no managed to strip out nbsp from Sunday, but now it's to late to deal with entities and the biiig XML::Twig manpage. See you Sundaynbsp at the Pubnbsp ;=)
PS i bet tybalt89 will come out with some working regex solution! ;=) L*
There are no rules, there are no thumbs.. Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
In Section
Meditations
|
|