First pass at generating block XML.  Not valid for all block types, but it's a start