Add new XML graphic function