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 7816325
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T05:49:40+00:00 2026-06-02T05:49:40+00:00

Okay so I have the ability to write the XML to an excel file

  • 0

Okay so I have the ability to write the XML to an excel file pretty easily (using Aspose.Cells) so that isn’t the problem, I just need to figure out how I should write it into Excel so that I can maintain the relationships that the original XML document had.

Example XML Doc:

<configData>
  <Items>
    <ItemId>1234</ItemId>
    <Description>Blah</Description>
  </Items>
  <Discounts>
    <Discount>
      <Detail>Heres the details</Detail>
      <Description>Description</Description>
    </Discount>
  </Discounts>
</configData>

These XML files actually drill down further than this, but this is just for the example.

What I originally did was import the XML into a DataSet object, which worked well, I could save that directly back to an XML file and it would maintain the proper format, since it has the relationships and the nested property is set to true.

The problem is when using Aspose.Cells to write this to Excel, there is no way to maintain these relationships when I import it back in. The way I exported it was to export each DataTable in the DataSet to a different worksheet, so the data could be easily edited and then uploaded back into a DataSet easily, but now I need to get it back into the proper nested XML.

Help! Thanks in advance.

  • 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-06-02T05:49:42+00:00Added an answer on June 2, 2026 at 5:49 am

    The solution was exporting this to a dataset, and then saving the .xslt from the dataset which is one of the built in functions of .net, and still exporting the data to separate worksheets, importing it back in in opposite order, and then applying the .xslt to bring back the relationships.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Okay I have a project that is using the android-rss library (org.mcsoxford.rss). I created
Okay I have a csv file that gets parsed and displayed. I want to
Okay I have a large CRUD app that uses tabs with Forms embedded in
Okay so i have a semi weridish problem with re.sub. Take the following code:
Okay so I have a web view that holds the chat bar div from
Okay i have a custom server control that has some autocomplete settings, i have
Okay I have three tables that all communicate with each other. ForumTopic t ForumMessage
Okay I have a table that looks as following: id | status(bool) | devicename(text)
Okay i have this problem with every page i make. im not sure what
Okay I have a small app for uploading an image (using phonegap, Jquery). I

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.