Help for this page

Select Code to Download


  1. or download this
    foreach my $node ($element->getChildNodes()) {}
    
  2. or download this
    my $child_nodes = $node->getChildNodes(); # get the child nodes
    my $child_node = $child_nodes->[0]; # get the first (only) child node
    
    my $content = $child_node->getData(); # get the content