Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 750457
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T14:33:12+00:00 2026-05-14T14:33:12+00:00

What is the quickest (as in least effort, not super performance) way to convert

  • 0

What is the quickest (as in least effort, not super performance) way to convert 112K rows in XML to a Excel view.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T14:33:13+00:00Added an answer on May 14, 2026 at 2:33 pm

    If you’re using Excel 2007 and want to use XSLT, your best bet would probably be use the EXPath Zip Module features to modify an existing Excel .xslx file.

    My preferred option, however, would be to use a small Excel VBA Macro.

    I’ve included sample code below for a VBA procedure called ‘load’ – this sample uses the XML DOM, so all 112K rows of your XML will be first loaded into memory, but if performance isn’t an issue its simpler than the SAX alternative.

    You would need to modify xpathToExtractRow to suit your XML input structure. There is also an assumption that the immediate child nodes of the XML row element contain the cell data you wish to import as text nodes, if not, you will need to use a SelectNode call to get the data you require.

    Private dom As DOMDocument60

    Public Sub load()

    Dim nodeList As IXMLDOMNodeList
    Dim nodeRow As IXMLDOMNode
    Dim nodeCell As IXMLDOMNode
    Dim rowCount As Integer
    Dim cellCount As Integer
    Dim rowRange As Range
    Dim cellRange As Range
    Dim sheet As Worksheet
    
    Dim xpathToExtractRow As String
    xpathToExtractRow = "/feed/row"
    
    Set dom = New DOMDocument60
    dom.load ("c:\test\source.xml")
    Set sheet = ActiveSheet
    Set nodeList = dom.SelectNodes(xpathToExtractRow)
    
    rowCount = 0
    For Each nodeRow In nodeList
        rowCount = rowCount + 1
        cellCount = 0
        For Each nodeCell In nodeRow.ChildNodes
            cellCount = cellCount + 1
            Set cellRange = sheet.Cells(rowCount, cellCount)
            cellRange.Value = nodeCell.Text
        Next nodeCell
    Next nodeRow
    

    End Sub

    Sample Input XML:

    <?xml version="1.0" encoding="utf-8"?>
    <feed>
      <row>
        <firstname>joe</firstname>
        <lastname>smith</lastname>
        <country>jamaica</country>
      </row>
      <row>
        <firstname>bill</firstname>
        <lastname>coots</lastname>
        <country>uk</country>
      </row>
    </feed>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

What's the quickest way to convert a date in one format, say 2008-06-01 to
What's the quickest and easiest way to convert my json, containing the data of
What is the quickest way to convert a string value of a URL to
I'm not sure what the best way and quickest way to search through values.
What is the quickest way to set your list view items so that when
How can I convert in the quickest way String[] to Vector<String> ?
What is the quickest way to get a large amount of data (think golf)
What is the quickest way to come up to speed on OpenGL ES 1.x?
What would be the quickest way to construct a Python binding to a C
what's the quickest way to extract a 5 digit number from a string in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.