XML : Java : Parsing xml file using SAX

I have a xml file, mentioned below:

  <?xml version="1.0" encoding="UTF-8"?>  <Workbook>      <ExcelWorkbook      xmlns="urn:schemas-microsoft-com:office:excel"/>          <Worksheet ss:Name="Table 1">              <Table>                  <Row ss:Index="7" ss:AutoFitHeight="0" ss:Height="12">                  <Cell ss:Index="1" ss:StyleID="s05">                      <ss:Data ss:Type="String"                          xmlns="http://www.w3.org/TR/REC-html40">                          <Font html:Size="9" html:Face="Times New Roman" x:Family="Roman" html:Color="#000000">                          ABCD                          </Font>                      </ss:Data>                  </Cell>              </Row>    

How do I extract the data, "ABCD" here, using SAX in Java?

No comments:

Post a Comment