Example #1
0
 public void ReadFrom(XmlDocument xmlDoc)
 {
     try
     {
         CommentsDocument doc = CommentsDocument.Parse(xmlDoc, NamespaceManager);
         comments = doc.GetComments();
     }
     catch (XmlException e)
     {
         throw new IOException(e.Message);
     }
 }
Example #2
0
 public void ReadFrom(Stream is1)
 {
     try
     {
         CommentsDocument doc = CommentsDocument.Parse(is1);
         comments = doc.GetComments();
     }
     catch (XmlException e)
     {
         throw new IOException(e.Message);
     }
 }
Example #3
0
 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);
     }
 }