question: convert a well-formed but not necessarily valid xml string into a jsonobject . some information may be lost in this transformation because json is a data format and xml is a document format . xml uses elements , attributes , and content text , while json uses unordered collections of name/value pairs and arrays of values . json does not does not like to distinguish between elements and attributes . sequences of similar elements are represented as jsonarrays . content text may be placed in a `` content '' member . comments , prologs , dtds , and < > are ignored . concode_field_sep Character EQ concode_elem_sep Character LT concode_elem_sep Character AMP concode_elem_sep Character QUEST concode_elem_sep Character QUOT concode_elem_sep Character APOS concode_elem_sep Character GT concode_elem_sep Character BANG concode_elem_sep Character SLASH concode_field_sep Object stringToValue concode_elem_sep void noSpace concode_elem_sep String toString concode_elem_sep String toString concode_elem_sep boolean parse concode_elem_sep String escape
target: JSONObject function ( String arg0 ) { JSONObject loc0 = new JSONObject ( ) ; XMLTokener loc1 = new XMLTokener ( arg0 ) ; while ( loc1 . more ( ) && loc1 . skipPast ( "srini_string" ) ) { parse ( loc1 , loc0 , null ) ; } return loc0 ; }