Skip to content
html -> xml::document converter
HTML Perl 6
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib/HTML/Parser
t NS updates Jan 25, 2017
.gitignore
.travis.yml
META6.json
README.md
prove added return value too Apr 22, 2014

README.md

Perl 6: HTML::Parser::XML;

This module will read HTML and attempt to build an XML::Document (https://github.com/supernovus/exemel/#xmldocument-xmlnode)

Features:

  • Automatically closes certain tags if certain other tags are encountered
  • Parses dirty HTML fairly well (AFAIK), submit a bug if it doesn't
  • Perl6 Magicness

Status:

Bugs/feature requests Maintenance mode

Usage:

my $html   = LWP::Simple.get('http://some-non-https-site.com/');
my $parser = HTML::Parser::XML.new;
$parser.parse($html);
$parser.xmldoc; # XML::Document

or

my $html   = LWP::Simple.get('http://some-non-https-site.com/');
my $parser = HTML::Parser::XML.new;
my $xmldoc = $parser.parse($html);

Contact me, segomos on irc.freenode #perl6 (segomos)

License: Artistic 2.0

You can’t perform that action at this time.