Added createMaterialFromXML implementation