Created
March 3, 2016 05:44
-
-
Save codenameone/416f9814dc7922677208 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// get all address_component names anywhere in the document with a type "political" | |
String array[] = result.getAsStringArray("//address_component[type='political']/long_name"); | |
// get all types anywhere under the second result (dimension is 0-based) | |
String array[] = result.getAsStringArray("/result[1]//type"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment