Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: How to extract text between two tags?

by bitingduck (Chaplain)
on May 28, 2015 at 22:46 UTC ( [id://1128201]=note: print w/replies, xml ) Need Help??


in reply to Re^2: How to extract text between two tags?
in thread How to extract text between two tags?

Not only will HTML::TreeBuilder do fine, but if it's an HTML file an XML parser is likely to die quickly on it. XML parsers are required to fail on invalid XML, while HTML parsers are allowed to be more forgiving (e.g. HTML::TreeBuilder defaults to inserting implicit end tags that would cause an XML parser to quit)
  • Comment on Re^3: How to extract text between two tags?

Replies are listed 'Best First'.
Re^4: How to extract text between two tags?
by Anonymous Monk on May 28, 2015 at 23:19 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1128201]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2024-04-19 09:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found