title: Parsing an XML response to a query
body: <p>I am trying to extract the County fips number for a large number of lines of longitude and latitude. I can get the data from an FCC API, but am having a hard time reading it into R.</p>
  
  <p>For example, when I run the following code in R:</p>
  
  <pre><code>library(httr)
  fips &lt;- GET("http://data.fcc.gov/api/block/find", query = list(latitude = 48.9905, longitude = -122.2733, showall="false"))
  
  result &lt;- content(fips, as = "parsed")
  
  result
  </code></pre>
  
  <p>the object "result" is displayed as follows</p>
  
  <pre><code>{xml_document}
  &lt;Response&gt;
  [1] &lt;Block FIPS="530730102002091"/&gt;
  [2] &lt;County FIPS="53073" name="Whatcom"/&gt;
  [3] &lt;State FIPS="53" code="WA" name="Washington"/&gt;
  </code></pre>
  
  <p>The information I am interested in is the county FIPS code "53073." How should I go about extracting just that number?</p>