POE::XUL::TextNode - XUL TextNode
use POE::XUL::Node; use POE::XUL::TextNode; # Explicitly create a TextNode my $node = POE::XUL::TextNode->new( "Just some text" ); print $node->nodeValue; # Implicitly create a TextNode my $desc = Description( "This is my description node" ); print $desc->firstChild->nodeValue;
POE::XUL::TextNode instances is are objects for holding and manipulating plain text. This permits mixed-mode nodes, that is nodes that contain both text and other nodes.
my $textnode = POE::XUL::TextNode->new( "Some Text" );
my $text = $textnode->nodeValue;
Returns the text of a TextNode. You may also set the text of the node.
$textnode->nodeValue( $other_text );
Of course this isn't possible in the browser's DOM; it is simulated by replacing the previous node with a new one.
Synonym for "nodeValue".
my $escaped_text = $textnode->as_xml;
Returns an empty array.
Does nothing.
Philip Gwyn <gwyn-at-cpan.org>
Based on XUL::Node by Ran Eilam.
Copyright 2007-2010 by Philip Gwyn. All rights reserved;
Copyright 2003-2004 Ran Eilam. All rights reserved.
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
perl(1), POE::XUL, POE::XUL::Node, POE::XUL::CDATA.
To install POE::XUL::RDF, copy and paste the appropriate command in to your terminal.
cpanm
cpanm POE::XUL::RDF
CPAN shell
perl -MCPAN -e shell install POE::XUL::RDF
For more information on module installation, please visit the detailed CPAN module installation guide.