Looking for a clear description of Excel’s .xlsx XML format [closed]

This PowerPoint deck, entitled “SpreadsheetML Basics”, from Microsoft, provides a good overview. It is a 30-page presentation including diagrams, and it is not practical to include its contents here. Four different stackoverflow reviewers have jumped on this post to delete it because the stackoverflow policy objects to simple links. I do not think that is … Read more

Set Default DateTime Format c#

The “default format” of a datetime is: ShortDatePattern + ‘ ‘ + LongTimePattern at least in the current mono implementation. This is particularly painful in case you want to display something like 2001-02-03T04:05:06Z i.e. the date and time combined as specified in ISO 8606, but not a big problem in your case: using System; using … Read more

SwingWorker not responding

if I add Thread.sleep(…), it does work, though, it throws a InterruptedException The code that apparently produces the exception (copied from OP’s edit): while (!isCancelled()) { counter %= arrNames.length; // System.out.format(“Counter : %d%n”, counter); publish(arrNames[counter]); try { Thread.sleep(30); // throws } catch (InterruptedException ie) { ie.printStackTrace(); } counter++; } The reason, though, is the code … Read more

PHP “pretty print” HTML (not Tidy)

you’re right, there seems to be no indentation for HTML (others are also confused). XML works, even with loaded code. <?php function tidyHTML($buffer) { // load our document into a DOM object $dom = new DOMDocument(); // we want nice output $dom->preserveWhiteSpace = false; $dom->loadHTML($buffer); $dom->formatOutput = true; return($dom->saveHTML()); } // start output buffering, using … Read more