Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • LibXML expects xhtml and crashes all over the place when I ask xsh to parse the HTML output of my webapp

    You know you can use parse_html* methods and set ->recover(1) to parse poorly formed HTML, right? I don't know if xsh supports this but if not, it should be easy to hack in.

    • xsh does indeed work fine with LibXML's recover mode. Type help recovering and help open in the shell for details.
      • 'Crash' was being too harsh. xsh (i.e. LibXML) actually spits out a warning for each error in the HTML/XML with recover on. I *want* those errors to display because I am able to fix them in the production templates.

        But thank you (and grantm) for the heads up.