Add load tree function for xmlGenerateSystem