More XML bug fixes. In order for the polymorphism to work in XML, xsi:type from xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" needed to be used. Using normal type was not working nor validating. Example XML now validates.