Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Can Numbers ’09 (part of the iWork suite) import XML files? Specifically, the format created by Excel when exporting as "XML Spreadsheet 2003."

I can't just use Excel's native format because the files are generated for our clients by a web app.

If Numbers can't handle these files, are there any other plaintext formats that could be used? I could use csv, but I would prefer to store formatting within the exported file itself.

share|improve this question
    
What's the resulting file format—.xml? Have you tried an import, and if so, what were the results? –  Dori Oct 21 '10 at 4:47
    
The resulting format is .xls, only because I am forcing it to output like that so file associations work. As most users simply freak out with a .xml and the native viewer. –  Brendan Bernard Oct 21 '10 at 5:51
add comment

2 Answers

Numbers ’09 supports Excel native format (.xls) but it can’t convert from an Excel XML Spreadsheet. In fact, if you rename it as “xls” and try to open it (trying to fool Numbers), you’ll probably see all the XML but not the actual spreadsheet. Which is more scary than Psychosis II back in the 80s.

Your only bet is some CVS or TEXT format, which excel can even export with Macintosh format for line endings and carrier return (if I’m not mistaken).

The big drawback is that all format and binary stuff is automagically lost in translation (certain pun intended). ;)

You’ll get the data, but not the format.

Another alternative is trying to automate the Excel XML to Excel Native format, even if your webapp outputs a XML, you could try to “transform them” before anything else.

For that, I haven’t investigated but you can start with a google query like this. There seem to be some Windows solutions, maybe something you can use/try.

share|improve this answer
    
Good ideas, but I want to do something more automated for our users. –  Brendan Bernard Oct 22 '10 at 6:46
    
@Brendan sadly, there isn’t one that I know at the moment. –  Martín Marconcini Oct 22 '10 at 13:32
add comment
up vote 1 down vote accepted

I ended up changing the output to native .xls format by using the php wrapper from http://phpexcel.codeplex.com. The files now open fine in both native windows Excel and iWorks Numbers '09.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.