Help for this page

Select Code to Download


  1. or download this
    Example text:
    
    <paragraph> Some <bold>text</bold> here which may be any <bold>length<
    +/bold> and <bold>contain</bold> a number of child tags.</paragraph>
    
  2. or download this
    use XML::Twig;
    my $twig = new XML::Twig(TwigHandlers => { 'bold' => \&bold, 'p'  => \
    +&paragraph, 'li'  => \&ordered_list},TwigRoots => {body => 1});
    
    ...
        &choiceReplace($para_text,$file);
        $bold->set_text($bold_text);
                      }