General Purpose Code for gbXML