Content by tag: "xml"

Tonight we're gonna parse like it's 1997

jp.stacey 23 February 2009
Opinions are like closing angle brackets: everyone's got one, but some stick out more than others, depending on your kerning

Via Sean McGrath comes a reasonably lucid and comprehensible redux of the argument about of whether or not the XML standard should (or should have) stipulated draconian error handling.

A WTF at the heart of your Drupal feed aggregation

jp.stacey 25 November 2008
Do try this at home, kids: but please have the decency to feel a little dirty about it.

Embedding JSON in XML. Hah, that's ridiculous, right? Almost as ridiculous as running a successful blog in .NET/ASP. Well, RSS can combine with JSON to quickly get a Drupal site to consume complex data structures over a webservice.

Drupal's core Aggregator module understands RSS2.0 with no tweaking, putting the text in the <description/> element into the content of quasi-node objects, so you can aggregate all sorts of syndicated content.

Firefox/Sage bookmarks to Google Reader import

jp.stacey 17 July 2008
When OPML is OPML but it isn't OPML

Want to migrate your RSS bookmarks from Firefox (or its RSS-reading addon, Sage) to Google Reader? I did, just now.

Christopher Hinze has written a great Firefox addon that exports bookmarks to OPML 1.0. Unfortunately, OPML is a bit of an anything-goes specification. So although Hinze's plugin produces valid OPML, it isn't the same sort of valid OPML that Google Reader expects.

OpenOffice arrows, .soe files and writing your own SVG

jp.stacey 1 August 2007

Creating your own arrows in OpenOffice (.org, 2.0) is a pain. There’s tutorials out there that claim to show how to create arrows from OOo diagrams, but I’ve not had much success with those. However, by taking apart an existing arrow, I’ve managed to work out the rather nasty syntax

CFJavaXML - a component for cached XML transformations

jp.stacey 9 February 2007

Mark Mandel wrote his own version of Coldfusion’s XmlTransform() function, using the underlying Java transform classes. Although one of his annoyances—that XmlTransform() won’t take any parameters—has been solved in CFMX7, XmlTransform() is nonetheless a slow operation, as the transform engine has to be cranked up, the XSL compiled, the transform effected and then everything garbage-collected, each call to the function, each request.

Rolling feed on jpstacey.info

jp.stacey 1 October 2006

Following my recent success with putting a Flickr feed on my website’s front page is the conversion of this to an all-purpose feed reporter, where RSS/Atom flavour and feed specifics are dealt with by Javascript associative arrays of functions, keyed on both variables respectively.