Exemplo n.º 1
0
 public void GetXmlFromFile(ContentURI uri,
                            string filePath, out XPathDocument xPathDoc)
 {
     xPathDoc = null;
     if (FileStorageIO.URIAbsoluteExists(uri, filePath))
     {
         XmlReader reader = FileStorageIO.GetXmlReader(uri, filePath);
         if (reader != null)
         {
             using (reader)
             {
                 xPathDoc = new XPathDocument(reader);
             }
         }
     }
 }