Help for this page

Select Code to Download


  1. or download this
    <root>
    <SUB CLASSNAME="SUB1">
    ...
           <Element2 Type="Type2">Type 2 value</Element2>
    </SUB>
    </root>
    
  2. or download this
    <SUB CLASSNAME="SUB1">
       <INNERSUB CLASSNAME="INNERSUB1">
    ...
            <Element2 Type="Type2">Content</element2>
       </INNERSUB>
    </SUB>
    
  3. or download this
    my $xs1 = XML::Simple->new();
    my $doc = $xs1->XMLin($file, keyattr=>['CLASSNAME'], ForceContent=>1, 
    +ForceArray=>1);
    ...
    $worksheet->Cells($rowCount, $colCount)->{Value} = $$element{content};
            }
       }