Dynamically load instance from xml