<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Save SketchGraphicLayer to XML file in ArcGIS for Windows Mobile Questions</title>
    <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/save-sketchgraphiclayer-to-xml-file/m-p/711573#M3040</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am building a recovery feature for an Windows Mobile application. Suppose that someone is drawing a sketch in a SketchGraphicLayer and the battery runs out and the device stops working. I want to be able to recover the drawing when the application is restarted. For this to work, I need to save the drawing to a file after every edit in the drawing and then restore it if the user wishes so. I chose to save the drawing into a XML file. I tried using the XmlWrite and XmlRead methods of the Geometry class of the SketchGraphicLayer, but they don't seem to work as I expected. The ESRI's documentation for these methods is practically nonexistent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So my question is: Can I use Geometry.XmlWrite(XmlWriter writer) to write a geometry to file and then restore it in another session of the application using Geometry.XmlRead(XmlReader reader)? Or do I need to build my own methods in order to acquire this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Jan 2012 17:45:58 GMT</pubDate>
    <dc:creator>CiprianLazar</dc:creator>
    <dc:date>2012-01-20T17:45:58Z</dc:date>
    <item>
      <title>Save SketchGraphicLayer to XML file</title>
      <link>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/save-sketchgraphiclayer-to-xml-file/m-p/711573#M3040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I am building a recovery feature for an Windows Mobile application. Suppose that someone is drawing a sketch in a SketchGraphicLayer and the battery runs out and the device stops working. I want to be able to recover the drawing when the application is restarted. For this to work, I need to save the drawing to a file after every edit in the drawing and then restore it if the user wishes so. I chose to save the drawing into a XML file. I tried using the XmlWrite and XmlRead methods of the Geometry class of the SketchGraphicLayer, but they don't seem to work as I expected. The ESRI's documentation for these methods is practically nonexistent.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So my question is: Can I use Geometry.XmlWrite(XmlWriter writer) to write a geometry to file and then restore it in another session of the application using Geometry.XmlRead(XmlReader reader)? Or do I need to build my own methods in order to acquire this?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2012 17:45:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-for-windows-mobile-questions/save-sketchgraphiclayer-to-xml-file/m-p/711573#M3040</guid>
      <dc:creator>CiprianLazar</dc:creator>
      <dc:date>2012-01-20T17:45:58Z</dc:date>
    </item>
  </channel>
</rss>

