hello
Can any one tell me how to read multiple worksheets from a single excel file.I have stored that excel in xml file.so i want to read that xml that has multiple worksheet.And i want to store that multiple worksheet data in different table.How can i do it.Below is my xml file.
<?xml version="1.0"?>
<Workbook xmlns="urn:sche mas-microsoft-com:office:spre adsheet"
xmlns:o="urn:sc hemas-microsoft-com:office:offi ce"
xmlns:x="urn:sc hemas-microsoft-com:office:exce l"
xmlns:ss="urn:s chemas-microsoft-com:office:spre adsheet"
xmlns:html="htt p://www.w3.org/TR/REC-html40">
<DocumentProper ties xmlns="urn:sche mas-microsoft-com:office:offi ce">
<Author>The Fritz Family</Author>
<LastAuthor>com 6</LastAuthor>
<Created>2008-05-17T17:58:56Z</Created>
<LastSaved>20 08-06-10T06:16:20Z</LastSaved>
<Version>10.262 5</Version>
</DocumentPropert ies>
<OfficeDocument Settings xmlns="urn:sche mas-microsoft-com:office:offi ce">
<DownloadCompon ents/>
<LocationOfComp onents HRef="file:///\\comp4\Deval%2 0(F)\Office%20X P\"/>
</OfficeDocumentS ettings>
<ExcelWorkboo k xmlns="urn:sche mas-microsoft-com:office:exce l">
<WindowHeight>1 1640</WindowHeight>
<WindowWidth>15 480</WindowWidth>
<WindowTopX>120 </WindowTopX>
<WindowTopY>135 </WindowTopY>
<ActiveSheet> 2</ActiveSheet>
<ProtectStructu re>False</ProtectStructur e>
<ProtectWindows >False</ProtectWindows>
</ExcelWorkbook>
<Worksheet ss:Name="Master Import Sheet">
<Table ss:ExpandedColu mnCount="11" ss:ExpandedRowC ount="43" x:FullColumns=" 1"
x:FullRows="1" ss:DefaultColum nWidth="54" ss:DefaultRowHe ight="15">
<Column ss:StyleID="s81 " ss:AutoFitWidth ="0" ss:Width="90.75 "/>
<Column ss:StyleID="s84 " ss:Width="49.5"/>
<Column ss:StyleID="s84 " ss:Width="51.75 "/>
<Column ss:StyleID="s84 " ss:AutoFitWidth ="0" ss:Width="81.75 "/>
<Column ss:StyleID="s84 " ss:Width="83.25 "/>
<Column ss:StyleID="s80 " ss:AutoFitWidth ="0" ss:Width="108"/>
<Column ss:StyleID="s80 " ss:AutoFitWidth ="0" ss:Width="107.2 5"/>
<Column ss:StyleID="s80 " ss:AutoFitWidth ="0" ss:Width="153.7 5"/>
<Column ss:StyleID="s80 " ss:AutoFitWidth ="0" ss:Width="127.5 "/>
<Column ss:StyleID="s75 " ss:Width="384.7 5"/>
<Column ss:Width="71.25 "/>
<Row ss:Height="17.2 5" ss:StyleID="s62 ">
<Cell ss:StyleID="s76 "><Data ss:Type="String ">Item Number</Data><Comment
ss:Author="Matt hew T. Fritz"><ss:Data
xmlns="http://www.w3.org/TR/REC-html40"><B><Fon t html:Face="Taho ma"
x:Family="Swiss " html:Size="8" html:Color="#00 0000">AUTOGENER ATED CELL</Font></B></ss:Data></Comment></Cell>
<Cell ss:StyleID="s82 "><Data ss:Type="String ">Logo ID</Data><Comment
ss:Author="Matt hew T. Fritz"><ss:Data
xmlns="http://www.w3.org/TR/REC-html40"><B><Fon t html:Face="Taho ma"
x:Family="Swiss " html:Size="8" html:Color="#00 0000">INPUT CELL</Font></B></ss:Data></Comment></Cell>
<Cell ss:StyleID="s82 "><Data ss:Type="String ">Color Id</Data><Comment
ss:Author="Matt hew T. Fritz"><ss:Data
xmlns="http://www.w3.org/TR/REC-html40"><B><Fon t html:Face="Taho ma"
x:Family="Swiss " html:Size="8" html:Color="#00 0000">INPUT CELL</Font></B></ss:Data></Comment></Cell>
<Cell ss:StyleID="s82 "><Data ss:Type="String ">Style/Unit Id</Data><Comment
ss:Author="Matt hew T. Fritz"><ss:Data
xmlns="http://www.w3.org/TR/REC-html40"><B><Fon t html:Face="Taho ma"
x:Family="Swiss " html:Size="8" html:Color="#00 0000">INPUT CELL</Font></B></ss:Data></Comment></Cell>
<Cell ss:StyleID="s82 "><Data ss:Type="String ">Descripto r ID</Data><Comment
ss:Author="Matt hew T. Fritz"><ss:Data
xmlns="http://www.w3.org/TR/REC-html40"><B><Fon t html:Face="Taho ma"
x:Family="Swiss " html:Size="8" html:Color="#00 0000">INPUT CELL</Font></B></ss:Data></Comment></Cell>
<Cell ss:StyleID="s77 "><Data ss:Type="String ">Design/Logo Name</Data><Comment
ss:Author="Matt hew T. Fritz"><ss:Data
xmlns="http://www.w3.org/TR/REC-html40"><B><Fon t html:Face="Taho ma"
x:Family="Swiss " html:Size="8" html:Color="#00 0000">AUTOGENER ATED CELL</Font></B></ss:Data></Comment></Cell>
<Cell ss:StyleID="s77 "><Data ss:Type="String ">Color Name</Data><Comment
ss:Author="Matt hew T. Fritz"><ss:Data
xmlns="http://www.w3.org/TR/REC-html40"><B><Fon t html:Face="Taho ma"
x:Family="Swiss " html:Size="8" html:Color="#00 0000">AUTOGENER ATED CELL</Font></B></ss:Data></Comment></Cell>
<Cell ss:StyleID="s77 "><Data ss:Type="String ">Style/Unit Name</Data><Comment
ss:Author="Matt hew T. Fritz"><ss:Data
xmlns="http://www.w3.org/TR/REC-html40"><B><Fon t html:Face="Taho ma"
x:Family="Swiss " html:Size="8" html:Color="#00 0000">AUTOGENER ATED CELL</Font></B></ss:Data></Comment></Cell>
<Cell ss:StyleID="s77 "><Data ss:Type="String ">Descripto r Name</Data><Comment
ss:Author="Matt hew T. Fritz"><ss:Data
xmlns="http://www.w3.org/TR/REC-html40"><B><Fon t html:Face="Taho ma"
x:Family="Swiss " html:Size="8" html:Color="#00 0000">AUTOGENER ATED CELL</Font></B></ss:Data></Comment></Cell>
<Cell ss:StyleID="s73 "><Data ss:Type="String ">Item Name</Data><Comment
ss:Author="Matt hew T. Fritz"><ss:Data
xmlns="http://www.w3.org/TR/REC-html40"><B><Fon t html:Face="Taho ma"
x:Family="Swiss " html:Size="8" html:Color="#00 0000">AUTOGENER ATED CELL</Font></B></ss:Data></Comment></Cell>
</Row>
<Row ss:Height="15.7 5">
<Cell ss:StyleID="s78 "
ss:Formula="=CO NCATENATE((TEXT (RC[1],"000" ;)),(TEXT(RC[2],"000" ;)),(TEXT(RC[3],"000" ;)),(TEXT(RC[4],"000" ;)))"><Data
ss:Type="String ">001002002 001</Data></Cell>
<Cell ss:StyleID="s85 "><Data ss:Type="String ">001</Data></Cell>
<Cell ss:StyleID="s85 "><Data ss:Type="String ">002</Data></Cell>
<Cell ss:StyleID="s85 "><Data ss:Type="String ">002</Data></Cell>
<Cell ss:StyleID="s85 "><Data ss:Type="String ">001</Data></Cell>
<Cell ss:StyleID="s79 "
ss:Formula="=VL OOKUP(RC[-4],'DesignLogo (ABC)'!C[-5]:C[-4],2,FALSE)"><Dat a
ss:Type="String ">SW-Explorer</Data></Cell>
<Cell ss:Formula="=VL OOKUP(RC[-4],'Color (DEF)'!C[-6]:C[-5],2,FALSE)"><Dat a
ss:Type="String ">Carrot</Data></Cell>
<Cell ss:Formula="=VL OOKUP(RC[-4],'StyleUnit (GHI)'!C[-7]:C[-6],2,FALSE)"><Dat a
ss:Type="String ">Ladies Standard T-Shirt</Data></Cell>
<Cell ss:StyleID="s79 "
ss:Formula="=VL OOKUP(RC[-4],'Descriptor (JKL)'!C[-8]:C[-7],2,FALSE)"><Dat a
ss:Type="String ">Wholesale Youth XS</Data></Cell>
<Cell ss:StyleID="s74 "
ss:Formula="=CO NCATENATE(RC[-1]," ",RC[-2]," ",RC[-3]," ",RC[-4])"><Data
ss:Type="String ">Wholesale Youth XS Ladies Standard T-Shirt Carrot SW-Explorer</Data></Cell>
</Row>
<Row>
<Cell ss:StyleID="s78 "
ss:Formula="=CO NCATENATE((TEXT (RC[1],"000" ;)),(TEXT(RC[2],"000" ;)),(TEXT(RC[3],"000" ;)),(TEXT(RC[4],"000" ;)))"><Data
ss:Type="String ">004001003 001</Data></Cell>
<Cell ss:StyleID="s85 "><Data ss:Type="String ">004</Data></Cell>
<Cell ss:StyleID="s85 "><Data ss:Type="String ">001</Data></Cell>
<Cell ss:StyleID="s85 "><Data ss:Type="String ">003</Data></Cell>
<Cell ss:StyleID="s85 "><Data ss:Type="String ">001</Data></Cell>
<Cell ss:StyleID="s79 "
ss:Formula="=VL OOKUP(RC[-4],'DesignLogo (ABC)'!C[-5]:C[-4],2,FALSE)"><Dat a
ss:Type="String ">SW-Animal</Data></Cell>
<Cell ss:Formula="=VL OOKUP(RC[-4],'Color (DEF)'!C[-6]:C[-5],2,FALSE)"><Dat a
ss:Type="String ">Khaki Green</Data></Cell>
<Cell ss:Formula="=VL OOKUP(RC[-4],'StyleUnit (GHI)'!C[-7]:C[-6],2,FALSE)"><Dat a
ss:Type="String ">Unisex Recycled T-Shirt</Data></Cell>
<Cell ss:StyleID="s79 "
ss:Formula="=VL OOKUP(RC[-4],'Descriptor (JKL)'!C[-8]:C[-7],2,FALSE)"><Dat a
ss:Type="String ">Wholesale Youth XS</Data></Cell>
<Cell ss:StyleID="s74 "
ss:Formula="=CO NCATENATE(RC[-1]," ",RC[-2]," ",RC[-3]," ",RC[-4])"><Data
ss:Type="String ">Wholesale Youth XS Unisex Recycled T-Shirt Khaki Green SW-Animal</Data></Cell>
</Row>
<Row>
<Cell ss:StyleID="s78 "
ss:Formula="=CO NCATENATE((TEXT (RC[1],"000" ;)),(TEXT(RC[2],"000" ;)),(TEXT(RC[3],"000" ;)),(TEXT(RC[4],"000" ;)))"><Data
ss:Type="String ">002004001 002</Data></Cell>
<Cell ss:StyleID="s85 "><Data ss:Type="String ">002</Data></Cell>
<Cell ss:StyleID="s85 "><Data ss:Type="String ">004</Data></Cell>
<Cell ss:StyleID="s85 "><Data ss:Type="String ">001</Data></Cell>
<Cell ss:StyleID="s85 "><Data ss:Type="String ">002</Data></Cell>
<Cell ss:StyleID="s79 "
ss:Formula="=VL OOKUP(RC[-4],'DesignLogo (ABC)'!C[-5]:C[-4],2,FALSE)"><Dat a
ss:Type="String ">SW-Aid</Data></Cell>
<Cell ss:Formula="=VL OOKUP(RC[-4],'Color (DEF)'!C[-6]:C[-5],2,FALSE)"><Dat a
ss:Type="String ">Mocha</Data></Cell>
<Cell ss:Formula="=VL OOKUP(RC[-4],'StyleUnit (GHI)'!C[-7]:C[-6],2,FALSE)"><Dat a
ss:Type="String ">Unisex Standard T-Shirt</Data></Cell>
<Cell ss:StyleID="s79 "
ss:Formula="=VL OOKUP(RC[-4],'Descriptor (JKL)'!C[-8]:C[-7],2,FALSE)"><Dat a
ss:Type="String ">Wholesale Youth S</Data></Cell>
<Cell ss:StyleID="s74 "
ss:Formula="=CO NCATENATE(RC[-1]," ",RC[-2]," ",RC[-3]," ",RC[-4])"><Data
ss:Type="String ">Wholesale Youth S Unisex Standard T-Shirt Mocha SW-Aid</Data></Cell>
</Row>
</Table>
<WorksheetOptio ns xmlns="urn:sche mas-microsoft-com:office:exce l">
<PageSetup>
<Header x:Margin="0.3"/>
<Footer x:Margin="0.3"/>
<PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
</PageSetup>
<Print>
<ValidPrinterIn fo/>
<HorizontalReso lution>-3</HorizontalResol ution>
<VerticalResolu tion>-3</VerticalResolut ion>
</Print>
<Zoom>85</Zoom>
<Panes>
<Pane>
<Number>3</Number>
<RangeSelection >C1</RangeSelection>
</Pane>
</Panes>
<ProtectObjects >False</ProtectObjects>
<ProtectScenari os>False</ProtectScenario s>
</WorksheetOption s>
</Worksheet>
<Worksheet ss:Name="Design Logo (ABC)">
<Table ss:ExpandedColu mnCount="2" ss:ExpandedRowC ount="61" x:FullColumns=" 1"
x:FullRows="1" ss:DefaultColum nWidth="54" ss:DefaultRowHe ight="14.25">
<Column ss:StyleID="s93 " ss:Width="98.25 "/>
<Column ss:StyleID="s70 " ss:Width="122.2 5"/>
<Row ss:Height="15" ss:StyleID="s72 ">
<Cell ss:StyleID="s92 "><Data ss:Type="String ">Design/Logo ID</Data></Cell>
<Cell ss:StyleID="s71 "><Data ss:Type="String ">Design/Logo Name</Data></Cell>
</Row>
<Row>
<Cell ss:StyleID="s86 "><Data ss:Type="String ">000</Data></Cell>
<Cell ss:StyleID="s69 "><Data ss:Type="String ">Test Logo</Data></Cell>
</Row>
<Row>
<Cell ss:StyleID="s86 "><Data ss:Type="String ">001</Data></Cell>
<Cell ss:StyleID="s69 "><Data ss:Type="String ">SW-Explorer</Data></Cell>
</Row>
<Row>
<Cell ss:StyleID="s86 "><Data ss:Type="String ">002</Data></Cell>
<Cell ss:StyleID="s69 "><Data ss:Type="String ">SW-Aid</Data></Cell>
</Row>
<Row>
<Cell ss:StyleID="s86 "><Data ss:Type="String ">003</Data></Cell>
<Cell ss:StyleID="s69 "><Data ss:Type="String ">SW-Service</Data></Cell>
</Row>
<Row>
<Cell ss:StyleID="s86 "><Data ss:Type="String ">004</Data></Cell>
<Cell ss:StyleID="s69 "><Data ss:Type="String ">SW-Animal</Data></Cell>
</Row>
</Table>
<WorksheetOptio ns xmlns="urn:sche mas-microsoft-com:office:exce l">
<PageSetup>
<Header x:Margin="0.3"/>
<Footer x:Margin="0.3"/>
<PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
</PageSetup>
<Panes>
<Pane>
<Number>3</Number>
<RangeSelection >C1</RangeSelection>
</Pane>
</Panes>
<ProtectObjects >False</ProtectObjects>
<ProtectScenari os>False</ProtectScenario s>
</WorksheetOption s>
</Worksheet>
<Worksheet ss:Name="Color (DEF)">
<Table ss:ExpandedColu mnCount="2" ss:ExpandedRowC ount="61" x:FullColumns=" 1"
x:FullRows="1" ss:DefaultColum nWidth="54" ss:DefaultRowHe ight="14.25">
<Column ss:StyleID="s93 "/>
<Column ss:StyleID="s70 " ss:Width="80.25 "/>
<Row ss:Height="15" ss:StyleID="s72 ">
<Cell ss:StyleID="s92 "><Data ss:Type="String ">Color ID</Data></Cell>
<Cell ss:StyleID="s71 "><Data ss:Type="String ">Color Name</Data></Cell>
</Row>
<Row>
<Cell ss:StyleID="s86 "><Data ss:Type="String ">000</Data></Cell>
<Cell ss:StyleID="s69 "><Data ss:Type="String ">Custom Choice</Data></Cell>
</Row>
<Row>
<Cell ss:StyleID="s86 "><Data ss:Type="String ">001</Data></Cell>
<Cell ss:StyleID="s69 "><Data ss:Type="String ">Khaki Green</Data></Cell>
</Row>
<Row>
<Cell ss:StyleID="s86 "><Data ss:Type="String ">002</Data></Cell>
<Cell ss:StyleID="s69 "><Data ss:Type="String ">Carrot</Data></Cell>
</Row>
<Row>
<Cell ss:StyleID="s86 "><Data ss:Type="String ">003</Data></Cell>
<Cell ss:StyleID="s69 "><Data ss:Type="String ">Chrome</Data></Cell>
</Row>
<Row>
<Cell ss:StyleID="s86 "><Data ss:Type="String ">004</Data></Cell>
<Cell ss:StyleID="s69 "><Data ss:Type="String ">Mocha</Data></Cell>
</Row>
</Table>
<WorksheetOptio ns xmlns="urn:sche mas-microsoft-com:office:exce l">
<PageSetup>
<Header x:Margin="0.3"/>
<Footer x:Margin="0.3"/>
<PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
</PageSetup>
<Selected/>
<Panes>
<Pane>
<Number>3</Number>
<ActiveCol>1</ActiveCol>
<RangeSelection >C2</RangeSelection>
</Pane>
</Panes>
<ProtectObjects >False</ProtectObjects>
<ProtectScenari os>False</ProtectScenario s>
</WorksheetOption s>
</Worksheet>
<Worksheet ss:Name="StyleU nit (GHI)">
<Table ss:ExpandedColu mnCount="2" ss:ExpandedRowC ount="27" x:FullColumns=" 1"
x:FullRows="1" ss:DefaultColum nWidth="54" ss:DefaultRowHe ight="14.25">
<Column ss:StyleID="s90 " ss:Width="79.5"/>
<Column ss:StyleID="s68 " ss:Width="154.5 "/>
<Row ss:Height="15.7 5" ss:StyleID="s65 ">
<Cell ss:StyleID="s88 "><Data ss:Type="String ">Style/Unit ID</Data></Cell>
<Cell ss:StyleID="s64 "><Data ss:Type="String ">Style/Unit Name</Data></Cell>
</Row>
<Row ss:StyleID="s63 ">
<Cell ss:StyleID="s87 "><Data ss:Type="String ">000</Data></Cell>
<Cell ss:StyleID="s66 "><Data ss:Type="String ">Test Style</Data></Cell>
</Row>
<Row ss:StyleID="s63 ">
<Cell ss:StyleID="s87 "><Data ss:Type="String ">001</Data></Cell>
<Cell ss:StyleID="s66 "><Data ss:Type="String ">Unisex Standard T-Shirt</Data></Cell>
</Row>
<Row ss:StyleID="s63 ">
<Cell ss:StyleID="s87 "><Data ss:Type="String ">002</Data></Cell>
<Cell ss:StyleID="s66 "><Data ss:Type="String ">Ladies Standard T-Shirt</Data></Cell>
</Row>
<Row ss:StyleID="s63 ">
<Cell ss:StyleID="s87 "><Data ss:Type="String ">003</Data></Cell>
<Cell ss:StyleID="s66 "><Data ss:Type="String ">Unisex Recycled T-Shirt</Data></Cell>
</Row>
</Table>
<WorksheetOptio ns xmlns="urn:sche mas-microsoft-com:office:exce l">
<PageSetup>
<Header x:Margin="0.3"/>
<Footer x:Margin="0.3"/>
<PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
</PageSetup>
<Print>
<ValidPrinterIn fo/>
<HorizontalReso lution>600</HorizontalResol ution>
<VerticalResolu tion>600</VerticalResolut ion>
</Print>
<Panes>
<Pane>
<Number>3</Number>
<ActiveRow>7</ActiveRow>
</Pane>
</Panes>
<ProtectObjects >False</ProtectObjects>
<ProtectScenari os>False</ProtectScenario s>
</WorksheetOption s>
</Worksheet>
<Worksheet ss:Name="Descri ptor (JKL)">
<Table ss:ExpandedColu mnCount="2" ss:ExpandedRowC ount="102" x:FullColumns=" 1"
x:FullRows="1" ss:DefaultColum nWidth="54" ss:DefaultRowHe ight="14.25">
<Column ss:StyleID="s90 " ss:Width="87.75 "/>
<Column ss:StyleID="s68 " ss:Width="154.5 "/>
<Row ss:Height="15.7 5">
<Cell ss:StyleID="s88 "><Data ss:Type="String ">Descripto r ID</Data></Cell>
<Cell ss:StyleID="s64 "><Data ss:Type="String ">Style/Unit Name</Data></Cell>
</Row>
<Row>
<Cell ss:StyleID="s87 "><Data ss:Type="String ">000</Data></Cell>
<Cell ss:StyleID="s66 "/>
</Row>
<Row>
<Cell ss:StyleID="s87 "><Data ss:Type="String ">001</Data></Cell>
<Cell ss:StyleID="s66 "><Data ss:Type="String ">Wholesale Youth XS</Data></Cell>
</Row>
<Row>
<Cell ss:StyleID="s87 "><Data ss:Type="String ">002</Data></Cell>
<Cell ss:StyleID="s66 "><Data ss:Type="String ">Wholesale Youth S</Data></Cell>
</Row>
<Row>
<Cell ss:StyleID="s87 "><Data ss:Type="String ">003</Data></Cell>
<Cell ss:StyleID="s66 "><Data ss:Type="String ">Wholesale Youth M</Data></Cell>
</Row>
<Row>
<Cell ss:StyleID="s87 "><Data ss:Type="String ">004</Data></Cell>
<Cell ss:StyleID="s66 "><Data ss:Type="String ">Wholesale Youth L</Data></Cell>
</Row>
</Table>
<WorksheetOptio ns xmlns="urn:sche mas-microsoft-com:office:exce l">
<PageSetup>
<Header x:Margin="0.3"/>
<Footer x:Margin="0.3"/>
<PageMargins x:Bottom="0.75" x:Left="0.7" x:Right="0.7" x:Top="0.75"/>
</PageSetup>
<Panes>
<Pane>
<Number>3</Number>
<ActiveRow>7</ActiveRow>
</Pane>
</Panes>
<ProtectObjects >False</ProtectObjects>
<ProtectScenari os>False</ProtectScenario s>
</WorksheetOption s>
</Worksheet>
</Workbook>
How to read this multiple worksheets?
Help me pls.
Thanks