How do I ignore certain tags when parsing xml in Perl? -


i'm parsing xml file has, between tags, text not want parse , may have broken tags. how select not parse text using 1 available modules xml parsing perl?

thanks in advance.

if xml broken (ie not well-formed), won't able use xml parser. that's feature. need fix first.

if xml well-formed can use xml::twig, ignore_elts option. you'll see xml if ignored elements never there.

alternatively, if xml "not broken", can try xml::liberal, may able deal it. or not...

and if have xhtml, or html, or close, can use either xml::libxml or xml::twig appropriate parsing methods.

good luck...


Comments

Popular posts from this blog

basic authentication with http post params android -

vb.net - Virtual Keyboard commands -

css - Firefox for ubuntu renders wrong colors -