vtypeMatrix has a toXML method which allows you to get just a scalar code of the xml. Useful for constant expressions.