Moved xpath into boostrap java

And removed complex-find while at it.

Submitting to @bootstraponline for review.

I'm working now on changing the getPageSource code to reuse the same code here.
I disagree with a lot of the comments here and I don't have time to
explain. I'll be back from NYC on Friday.
On Aug 19, 2014 3:48 PM, "bootstrap online" <matt@bootstraponline.com>
wrote:

> Eric, we should talk. The exception is generic for a reason.
> On Aug 19, 2014 2:27 PM, "Eric Millin" <notifications@github.com> wrote:
>
>> In
>> lib/devices/android/bootstrap/src/io/appium/android/bootstrap/utils/XMLHierarchy.java:
>>
>> > +      if (children.item(i).getNodeType() == Node.ELEMENT_NODE) {
>> > +        visitNode(children.item(i), instances);
>> > +        annotateNodes(children.item(i), instances);
>> > +      }
>> > +    }
>> > +  }
>> > +
>> > +  private static void visitNode(Node node, HashMap<String, Integer> instances) {
>> > +
>> > +    Document doc = node.getOwnerDocument();
>> > +    NamedNodeMap attributes = node.getAttributes();
>> > +
>> > +    String androidClass;
>> > +    try {
>> > +      androidClass = attributes.getNamedItem("class").getNodeValue();
>> > +    } catch (Exception e) {
>>
>> can you make this more specific?
>>
>> —
>> Reply to this email directly or view it on GitHub
>> <https://github.com/appium/appium/pull/3428/files#r16433502>.
>>
>