complex string interpolation from xml-like text