Modified the string handling in the example. Added code to process a print format string which is specified in the XML.