public void ReadFrom(XmlDocument xmlDoc) { try { CommentsDocument doc = CommentsDocument.Parse(xmlDoc, NamespaceManager); comments = doc.GetComments(); } catch (XmlException e) { throw new IOException(e.Message); } }
public void ReadFrom(Stream is1) { try { CommentsDocument doc = CommentsDocument.Parse(is1); comments = doc.GetComments(); } catch (XmlException e) { throw new IOException(e.Message); } }
public void ReadFrom(Stream is1) { try { XmlDocument xmlDoc = ConvertStreamToXml(is1); CommentsDocument doc = CommentsDocument.Parse(xmlDoc, NamespaceManager); comments = doc.GetComments(); } catch (XmlException e) { throw new IOException(e.Message); } }