title: "TransformerException: A location step was expected" in android xpath
body: <p>Ive been trying to pull data from an xml file but i keep getting this error and im not sure what im doing wrong.</p>
  
  <pre><code>10-23 14:20:29.250: WARN/System.err(3541): --------------- linked to ------------------
  10-23 14:20:29.250: WARN/System.err(3541): javax.xml.xpath.XPathExpressionException: javax.xml.transform.TransformerException: A location step was expected following the '/' or '//' token.
  </code></pre>
  
  <p>Here is my code:</p>
  
  <pre><code>String pill;
  
          URL url = new URL("file:///mnt/sdcard/cpdata/cpxml.xml");
          InputSource xml = new InputSource(url.openStream());
          XPath xpath = XPathFactory.newInstance().newXPath();
  
  
          pill = xpath.evaluate("//data/monday/p1/",xml);
          pills.add(pill);
          Log.d("PILLLLLLSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS", pill);
          tv.setText(pill + "hi");
  </code></pre>
  
  <p>And this is my xml document:</p>
  
  <pre><code>-&lt;data&gt; 
    -&lt;monday&gt; 
      &lt;p1&gt;test1&lt;/p1&gt; 
      &lt;p2&gt;test1&lt;/p2&gt; 
    &lt;/monday&gt; 
    -&lt;tuesday&gt; 
      &lt;p1&gt;test1&lt;/p1&gt; 
      &lt;p2&gt;test1&lt;/p2&gt; 
    &lt;/tuesday&gt; 
    -&lt;wednesday&gt; 
      &lt;p1&gt;1.0&lt;/p1&gt; 
      &lt;p2&gt;test1&lt;/p2&gt; 
  &lt;/wednesday&gt; 
  -&lt;thursday&gt; 
      &lt;p1&gt;test1&lt;/p1&gt; 
      &lt;p2&gt;test1&lt;/p2&gt; 
  &lt;/thursday&gt; 
  -&lt;friday&gt; 
      &lt;p1&gt;test1&lt;/p1&gt; 
      &lt;p2&gt;test1&lt;/p2&gt; 
  &lt;/friday&gt; 
  -&lt;saturday&gt; 
      &lt;p1&gt;test1&lt;/p1&gt; 
      &lt;p2&gt;test1&lt;/p2&gt; 
  &lt;/saturday&gt; 
  -&lt;sunday&gt; 
      &lt;p1&gt;test1&lt;/p1&gt; 
      &lt;p2&gt;test1&lt;/p2&gt; 
  &lt;/sunday&gt; 
  </code></pre>
  
  <p></p>