loadFromXML now uses createMaterialFromXML