Help for this page

Select Code to Download


  1. or download this
    $channel_template =<<END;
    <object>
    ...
    $doc->setEncoding('UTF-8');
    $root = $doc->documentElement();
    
  2. or download this
    $output_element = $doc->createElement('out');
    
  3. or download this
    
    <object_wrapper>
    ...
        </object>
    </object_wrapper>
    
  4. or download this
    $parser = XML::LibXML->new();
    $parser->keep_blanks(0);  
    ...
    my ($object_element) = $root->findnodes('//object');
    $doc->setDocumentElement($channel_element);
    $root = $doc->documentElement();