1HTML::TreeBuilder::LibXUMsLe:r:NCoodnet(r3ipbmu)ted PerlHTDMoLc:u:mTerneteaBtuiiolnder::LibXML::Node(3pm)
2
3
4

NAME

6       HTML::TreeBuilder::LibXML::Node - HTML::Element compatible API for
7       HTML::TreeBuilder::LibXML
8

SYNOPSIS

10         my $value = $node->attr('name');
11         my $string = $node->string_value;
12         my $text   = $node->as_text;
13         my $t_text = $node->as_trimmed_text;
14         my $xml    = $node->as_XML;
15         my $html   = $node->as_HTML;
16         my $tag    = $node->tag;
17         my $id     = $node->id;
18         my $clone  = $node->clone;
19         $node->delete;
20         my $prev_sib = $node->left;
21         my $next_sib = $node->right;
22         $node->look_down(@args);
23         my %attr     = $node->all_attr;
24         my %attr     = $node->all_external_attr;
25         my @names    = $node->all_attr_names;
26         my @names    = $node->all_external_attr_names;
27         my @elements = $node->find($elem_name);
28         my @child_nodes = $node->content_list;
29         my $parent = $node->parent;
30         my $old_parent = $node->detach;
31         $node->postinsert($element_or_text, ...);
32         $node->preinsert($element_or_text, ...);
33         $node->push_content($element_or_text, ...);
34         $node->unshift_content($element_or_text, ...);
35         $node->replace_with($element_or_text, ...);
36
37         my @clones = HTML::TreeBuilder::LibXML::Node->clone_list(@nodes);
38
39         # HTML::TreeBuilder::XPath
40         my @nodes  = $node->find($xpath)
41         my @nodes  = $node->findnodes($xpath);
42         my $value  = $node->findvalue($xpath);
43         my @values = $node->findvalues($xpath);
44         $node->isTextNode;
45         my $child = $node->getFirstChild;
46         my $bool  = $node->exists($xpath);
47         my $bool  = $node->matches($xpath);
48
49         my $value  = $node->findnodes_as_string($xpath);
50         my @values = $node->findnodes_as_strings($xpath);
51
52
53
54perl v5.32.1                      2021-01-2H7TML::TreeBuilder::LibXML::Node(3pm)
Impressum