Help for this page

Select Code to Download


  1. or download this
    < i t e m 1 / > LF < i t e m 2 / > LF < i t e m 3 / > LF
    
  2. or download this
    < i t e m 1 / > LF LF < i t e m 3 / > LF
    
  3. or download this
    use strict;
    use warnings;
    ...
    remove_node($node);
    
    print $root->toString();
    
  4. or download this
    my ($next_node) = $node->findnodes(
          'following-sibling::*[ position()=1 and text() ]')
       or return;
    
  5. or download this
    my ($next_node) = $node->findnodes(
          'following-sibling::node()[ position()=1 and self::text() ]')
       or return;
    
  6. or download this
    my $next_node = $node->nextSibling()
       or return;
    $next_node->nodeType() == XML_TEXT_NODE
       or return;