@@ -66,7 +66,7 @@ public class XML {
6666 public static final Character SLASH = '/' ;
6767
6868 /**
69- * Null attrubute name
69+ * Null attribute name
7070 */
7171 public static final String NULL_ATTR = "xsi:nil" ;
7272
@@ -251,7 +251,7 @@ private static boolean parse(XMLTokener x, JSONObject context, String name, XMLP
251251 throws JSONException {
252252 char c ;
253253 int i ;
254- JSONObject jsonobject = null ;
254+ JSONObject jsonObject = null ;
255255 String string ;
256256 String tagName ;
257257 Object token ;
@@ -332,7 +332,7 @@ private static boolean parse(XMLTokener x, JSONObject context, String name, XMLP
332332 } else {
333333 tagName = (String ) token ;
334334 token = null ;
335- jsonobject = new JSONObject ();
335+ jsonObject = new JSONObject ();
336336 boolean nilAttributeFound = false ;
337337 for (;;) {
338338 if (token == null ) {
@@ -353,14 +353,14 @@ private static boolean parse(XMLTokener x, JSONObject context, String name, XMLP
353353 && Boolean .parseBoolean ((String ) token )) {
354354 nilAttributeFound = true ;
355355 } else if (!nilAttributeFound ) {
356- jsonobject .accumulate (string ,
356+ jsonObject .accumulate (string ,
357357 config .keepStrings
358358 ? ((String ) token )
359359 : stringToValue ((String ) token ));
360360 }
361361 token = null ;
362362 } else {
363- jsonobject .accumulate (string , "" );
363+ jsonObject .accumulate (string , "" );
364364 }
365365
366366
@@ -371,8 +371,8 @@ private static boolean parse(XMLTokener x, JSONObject context, String name, XMLP
371371 }
372372 if (nilAttributeFound ) {
373373 context .accumulate (tagName , JSONObject .NULL );
374- } else if (jsonobject .length () > 0 ) {
375- context .accumulate (tagName , jsonobject );
374+ } else if (jsonObject .length () > 0 ) {
375+ context .accumulate (tagName , jsonObject );
376376 } else {
377377 context .accumulate (tagName , "" );
378378 }
@@ -390,21 +390,20 @@ private static boolean parse(XMLTokener x, JSONObject context, String name, XMLP
390390 } else if (token instanceof String ) {
391391 string = (String ) token ;
392392 if (string .length () > 0 ) {
393- jsonobject .accumulate (config .cDataTagName ,
393+ jsonObject .accumulate (config .cDataTagName ,
394394 config .keepStrings ? string : stringToValue (string ));
395395 }
396396
397397 } else if (token == LT ) {
398398 // Nested element
399- if (parse (x , jsonobject , tagName , config )) {
400- if (jsonobject .length () == 0 ) {
399+ if (parse (x , jsonObject , tagName , config )) {
400+ if (jsonObject .length () == 0 ) {
401401 context .accumulate (tagName , "" );
402- } else if (jsonobject .length () == 1
403- && jsonobject .opt (config .cDataTagName ) != null ) {
404- context .accumulate (tagName ,
405- jsonobject .opt (config .cDataTagName ));
402+ } else if (jsonObject .length () == 1
403+ && jsonObject .opt (config .cDataTagName ) != null ) {
404+ context .accumulate (tagName , jsonObject .opt (config .cDataTagName ));
406405 } else {
407- context .accumulate (tagName , jsonobject );
406+ context .accumulate (tagName , jsonObject );
408407 }
409408 return false ;
410409 }
@@ -731,7 +730,7 @@ public static String toString(final Object object, final String tagName, final X
731730 }
732731 if (tagName != null ) {
733732
734- // Emit the </tagname > close tag
733+ // Emit the </tagName > close tag
735734 sb .append ("</" );
736735 sb .append (tagName );
737736 sb .append ('>' );
0 commit comments