Forum Discussion

Cajuf's avatar
Cajuf
Copper Contributor
Jul 20, 2023
Solved

Editting a XML file in Excel, then exporting it back as XML

Is it possible to recover the original XML file after importing it to Excel, even if no changes are made to it? If I right click the table generated after importing it and then go to XML -> Expo...
  • LeonPavesic's avatar
    LeonPavesic
    Jul 20, 2023

    Hi Cajuf,

    thanks for your answer and the update.

    Even if you map the table columns to an XML schema, Excel might still have trouble exporting it back as XML. You might see the "Cannot save or export XML data. The XML maps in this workbook are not exportable" error pop up. Basically, Excel has some limitations when dealing with certain XML structures, and it might not play nice during the export process.

    Map XML elements to cells in an XML Map - Microsoft Support

    Using a valid XML schema to map the table columns helps define the XML's structure and data types, but it doesn't guarantee smooth sailing with Excel's export. If the XML file is a bit too complex for Excel's taste, you could run into this error.

    So, to be safe and keep the original XML intact, it's best to use a special XML editor or a text editor with full XML support. 

    Excel can still be handy for analyzing and visualizing data, but for serious XML work, it's better to use XML dedicated editors.

    Please click Mark as Best Response & Like if my post helped you to solve your issue.
    This will help others to find the correct solution easily. It also closes the item.


    If the post was useful in other ways, please consider giving it Like.


    Kindest regards,


    Leon Pavesic

Resources