How to convert XML data to EXCEL

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Limno
    New Member
    • Apr 2008
    • 92

    How to convert XML data to EXCEL

    Hi,

    Can anyone help How to convert XML file into EXCEL file
    with some samples........

    Urgent,
    Help me
    Thanks in Advance.
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Using a tool or a programming language?

    Comment

    • Limno
      New Member
      • Apr 2008
      • 92

      #3
      Using Programming Language....... ....

      Comment

      • r035198x
        MVP
        • Sep 2006
        • 13225

        #4
        Originally posted by Limno
        Using Programming Language....... ....
        Which one?

        Comment

        • Limno
          New Member
          • Apr 2008
          • 92

          #5
          Using .net programming language

          Comment

          • jkmyoung
            Recognized Expert Top Contributor
            • Mar 2006
            • 2057

            #6
            In general, when converting xml to an excel sheet, you're converting the data into a table - row format.
            You need to define where each of your rows are, and which of the data you want for each row.

            I suggest reverse engineering, by creating a small sample spreadsheet in excel (2003 or later) and then saving it in the xml format. You'll find that the data generally goes into a format like:
            [code=xml]
            <Worksheet>
            <Table>
            <Row>
            <Cell><Data ss:Type="String ">a</Data></Cell>
            <Cell><Data ss:Type="String ">b</Data></Cell>
            <Cell><Data ss:Type="String ">c</Data></Cell>
            </Row>
            <Row>
            <Cell><Data ss:Type="Number ">1</Data></Cell>
            <Cell><Data ss:Type="Number ">2</Data></Cell>
            <Cell><Data ss:Type="Number ">3</Data></Cell>
            </Row>
            </Table>
            </Worksheet>
            [/code]

            Comment

            • TrevRex
              New Member
              • Aug 2008
              • 2

              #7
              This web page helped me and it should help you:

              http://www.mrexcel.com/tip064.shtml

              This was the most simple and easy to understand process that I have found in my internet searches.

              Comment

              • Landy67
                New Member
                • Feb 2012
                • 3

                #8
                Hello,
                I found a solution on C-sharp corner. I think that the method in this article may be helpful for you.
                In our normal working days, we may usually need export data from database into Excel. And after or during exporting we may have requirements on style settings to make the output Excel worksheet with good appearance for readers easily get the data information, such as create a group report.

                Hope Helpful!

                Comment

                Working...