Home | History | Annotate | Download | only in json

Lines Matching refs:XML

31  * This provides static methods to convert an XML text into a JSONArray or 
32 * JSONObject, and to covert a JSONArray or JSONObject into an XML text using
40 * Parse XML values and store them in a JSONArray.
67 if (token == XML.LT) {
70 if (token == XML.SLASH) {
80 if (x.nextToken() != XML.GT) {
84 } else if (token == XML.BANG) {
109 } else if (token == XML.LT) {
111 } else if (token == XML.GT) {
116 } else if (token == XML.QUEST) {
164 if (token == XML.EQ) {
181 if (token == XML.SLASH) {
182 if (x.nextToken() != XML.GT) {
196 if (token != XML.GT) {
230 * Convert a well-formed (but not necessarily valid) XML string into a
231 * JSONArray using the JsonML transform. Each XML tag is represented as
238 * @return A JSONArray containing the structured data from the XML string.
247 * Convert a well-formed (but not necessarily valid) XML string into a
248 * JSONArray using the JsonML transform. Each XML tag is represented as
255 * @return A JSONArray containing the structured data from the XML string.
265 * Convert a well-formed (but not necessarily valid) XML string into a
266 * JSONObject using the JsonML transform. Each XML tag is represented as
273 * @param x An XMLTokener of the XML source text.
274 * @return A JSONObject containing the structured data from the XML string.
281 * Convert a well-formed (but not necessarily valid) XML string into a
282 * JSONObject using the JsonML transform. Each XML tag is represented as
289 * @param string The XML source text.
290 * @return A JSONObject containing the structured data from the XML string.
299 * Reverse the JSONML transformation, making an XML text from a JSONArray.
301 * @return An XML string.
318 XML.noSpace(tagName);
319 tagName = XML.escape(tagName);
333 XML.noSpace(k);
337 sb.append(XML.escape(k));
340 sb.append(XML.escape(v));
361 sb.append(XML.escape(e.toString()));
378 * Reverse the JSONML transformation, making an XML text from a JSONObject.
383 * @return An XML string.
401 return XML.escape(jo.toString());
403 XML.noSpace(tagName);
404 tagName = XML.escape(tagName);
414 XML.noSpace(k);
418 sb.append(XML.escape(k));
421 sb.append(XML.escape(v));
440 sb.append(XML.escape(e.toString()));