title: get the uiautomator dump in a file and then parse it to get the bounds
body: <p>I am working on getting the layout view of an activity and then parsing to get the bound of the required item.
  I am using uiautomator view to get the layout view using <code>"adb exec-out uiautomator dump /dev/tty"</code> but I want it to get into a file so that I can use it for parsing using Linq to XML</p>
  
  <pre><code>var xml = XDocument.Load(output);
  </code></pre>
  
  <p>I have gone through answer at <a href="https://stackoverflow.com/questions/26586685/is-there-a-way-to-get-current-activitys-layout-and-views-via-adb">Is there a way to get current activity&#39;s layout and views via adb?</a> but not getting much help.Please suggest some pointer over it.</p>