示例#1
0
 public void ReadFrom(Stream is1)
 {
     try
     {
         TableDocument doc = TableDocument.Parse(is1);
         ctTable = doc.GetTable();
     }
     catch (XmlException e)
     {
         throw new IOException(e.Message);
     }
 }
示例#2
0
 public void ReadFrom(XmlDocument xmlDoc)
 {
     try
     {
         TableDocument doc = TableDocument.Parse(xmlDoc, NamespaceManager);
         ctTable = doc.GetTable();
     }
     catch (XmlException e)
     {
         throw new IOException(e.Message);
     }
 }