Convert a well-formed (but not necessarily valid) XML string into a JSONArray using the JsonML transform. Each XML tag is represented as a JSONArray in which the first element is the tag name. If the tag has attributes, then the second element will be JSONObject containing the name/value pairs. If t
(String string)
| 239 | * @throws JSONException |
| 240 | */ |
| 241 | public static JSONArray toJSONArray(String string) throws JSONException { |
| 242 | return toJSONArray(new XMLTokener(string)); |
| 243 | } |
| 244 | |
| 245 | |
| 246 | /** |