/// <summary> /// Gets the xml description of an object /// </summary> /// <param name="path">The path of the object</param> /// <returns>An xml description of the object with the given path</returns> public XMLDescription GetXMLSerializedObjectFromPath(string path) { XMLDescription myXMLMGO = new XMLDescription(); myXMLMGO.XMLData = MariniImpiantoTree.Instance.SerializeObjectByPath(path); Logger.InfoFormat("GetXMLSerializedObjectFromPath di {0}", path); return(myXMLMGO); }
/// <summary> /// Gets the xml description of an object /// </summary> /// <param name="id">The ID of the object</param> /// <returns>An xml description of the object with the given ID</returns> public XMLDescription GetXMLSerializedObjectFromId(string id) { XMLDescription myXMLMGO = new XMLDescription(); myXMLMGO.XMLData = MariniImpiantoTree.Instance.SerializeObjectById(id); Logger.InfoFormat("GetXMLSerializedObjectFromId di {0}", id); return(myXMLMGO); }