Esempio n. 1
0
 public void ReadXmlString(string strDescription)
 {
     using (XmlReader rDescription = XmlReader.Create(new StringReader(strDescription)))
     {
         bool isEmpty = rDescription.IsEmptyElement;
         rDescription.ReadStartElement();
         if (isEmpty) return;
         while (rDescription.NodeType == XmlNodeType.Element)
         {
             ReadXmlDimension(rDescription);
             Northing = ReadXmlDimension(rDescription);
             Easting = ReadXmlDimension(rDescription);
             Elevation = ReadXmlDimension(rDescription);
             if (rDescription.Name==Photos.XmlName)
             {
                 Photos = new Photos(rDescription);
             }
         }
         rDescription.ReadEndElement();
     }
 }
Esempio n. 2
0
 public void ReadXmlString(string strDescription)
 {
     using (XmlReader rDescription = XmlReader.Create(new StringReader(strDescription)))
     {
         bool isEmpty = rDescription.IsEmptyElement;
         rDescription.ReadStartElement();
         if (isEmpty)
         {
             return;
         }
         while (rDescription.NodeType == XmlNodeType.Element)
         {
             ReadXmlDimension(rDescription);
             Northing  = ReadXmlDimension(rDescription);
             Easting   = ReadXmlDimension(rDescription);
             Elevation = ReadXmlDimension(rDescription);
             if (rDescription.Name == Photos.XmlName)
             {
                 Photos = new Photos(rDescription);
             }
         }
         rDescription.ReadEndElement();
     }
 }