/// <summary> /// Loads the provided XML stream /// </summary> /// <param name="reader">The XML stream to load</param> public void Load(TextReader reader) { // TODO: Document exceptions _xml = new XmlElement(XElement.Parse(reader.ReadToEnd())); }
/// <summary> /// Loads the provided XML string /// </summary> /// <param name="data">The XML string to load</param> public void Load(string data) { // TODO: Document exceptions _xml = new XmlElement(XElement.Parse(data)); }