Quantcast
Channel: Open XML Format SDK forum
Viewing all articles
Browse latest Browse all 1288

Open XML SDK 2.5 - Excel - questions on 'internal" XML files - indentation, Byte Order Marks (BOM)

$
0
0

This post is strictly for making comparison purposes between Excel files, other than for that I don't care about the "indentation" or BOM characters.

Right now in order to compare the "original" Excel files that we currently produce (from macros) to the Excel files that I'm creating with the Open XML SDK 2.5, I'm doing the following steps:

  • Rename the existing and new Excel files from .xlsx to .zip.
  • Extracting the contents of each zip file into a new folder.
  • Open each XML file in each folder using XMLSpy, do a "pretty print", and save it.  If I don't do this step, it's pointless to do the compares.
  • Use WinDiff.exe to compare the two folders.

That works fine, other than it is labor intensive and I have 80 original files to do!

I know with the XmlWriter and other classes, there is control over the format of the xml.  I don't have the desire to switch my code to doing it that way just for the sake of comparisons.

But I don't see any formatting control (or other ways) in the SpreadsheetDocument class or other classes in the SDK.

Can someone confirm that this is correct or offer some alternatives for making these comparisons easier?

Thanks.



Viewing all articles
Browse latest Browse all 1288

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>