NAME

HTML::Xit - XML/HTML DOM Manipulation with CSS Selectors

SYNOPSIS

my $X = new HTML::Xit("http://mysite.com/mydoc.html");

$X->("a")->each( sub { my($X) = @_;

print $X->attr("href");
print $X->text;
print $X->html;
} );

$X->(".a")->addClass("b c d")->removeClass("c e")->toggleClass("b a");

print $X->("<a>")->attr("href", "http://mysite.com")->text("My Site")->html;

DESCRIPTION

DOM manipulation in the style of jQuery using XML::LibXML and HTML::Selector::XPath.

METHODS

new
addClass
append
attr
children
each
first
get
html
last
prepend
removeClass
text
toggleClass

SEE ALSO

XML::LibXML, HTML::Selector::XPath

AUTHOR

Ersun Warncke, <ersun.warncke at outlook.com> http://ersun.warnckes.com

COPYRIGHT

Copyright (C) 2014 Ersun Warncke

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.