XML
This provides static methods to convert an XML text into a JSONObject, and to covert a JSONObject into an XML text.
Author
JSON.org
Functions
Link copied to clipboard
Replace special characters with XML escapes:
& (ampersand) is replaced by &
< (less than) is replaced by &lt;
> (greater than) is replaced by &gt;
" (double quote) is replaced by &quot;
' (single quote / apostrophe) is replaced by &apos;
Content copied to clipboard
Link copied to clipboard
This method is the same as stringToValue.
This method tries to convert the given string value to the target object
Link copied to clipboard
Convert a well-formed (but not necessarily valid) XML into a JSONObject.
Convert a well-formed (but not necessarily valid) XML string into a JSONObject.