<div dir="ltr">Ok, if you need  to stay in XML land then I think the SAX parser is the best idea, but you'll still need to do a bit of eyeballing of what's being output to ensure your not just getting rid of nodes that are useful but empty. <div>
<br></div><div style>Other option is to use OpenOffice's command line converter to convert to CSV on the server - unoconv <a href="http://dag.wieers.com/home-made/unoconv/">http://dag.wieers.com/home-made/unoconv/</a></div>
</div><div class="gmail_extra"><br clear="all"><div><div>-- </div><div>David Burrows</div><div>079 1234 2125</div><div>@dburrows</div><div><br></div><div><a href="http://www.designsuperbuild.com/" target="_blank">http://www.designsuperbuild.com/</a> | @dsgnsprbld</div>
</div>
<br><br><div class="gmail_quote">On Fri, Mar 15, 2013 at 1:53 PM, Andrew Stewart <span dir="ltr"><<a href="mailto:boss@airbladesoftware.com" target="_blank">boss@airbladesoftware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br>
On 15 Mar 2013, at 14:47, David Burrows wrote:<br>
> One of the tricks i've used lately with temperamental Excel files is importing them into Google Docs and then exporting back from there. Fixes no end of problems including some weird Excel encoding problems.<br>

<br>
</div>An interesting idea but I'm not sure I can do that programatically.<br>
<div class="im"><br>
> Is there any reason your not just using CSV?<br>
<br>
</div>Yes – I don't have any control over the spreadsheet generation.  My customer is sent the spreadsheet by one of their suppliers; they (my customer) then uploads it into my webapp which reads the spreadsheet and extracts the data.<br>

<br>
Thanks,<br>
Andy<br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
Chat mailing list<br>
<a href="mailto:Chat@lists.lrug.org">Chat@lists.lrug.org</a><br>
<a href="http://lists.lrug.org/listinfo.cgi/chat-lrug.org" target="_blank">http://lists.lrug.org/listinfo.cgi/chat-lrug.org</a><br>
</div></div></blockquote></div><br></div>