From f9ef03207ece5b34b279dab80ee7b9ae81abbb42 Mon Sep 17 00:00:00 2001 From: Douglas Crockford Date: Tue, 29 May 2012 13:41:59 -0700 Subject: [PATCH] --> --- JSONML.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/JSONML.java b/JSONML.java index d29be71..f29ee72 100755 --- a/JSONML.java +++ b/JSONML.java @@ -31,8 +31,9 @@ import java.util.Iterator; * This provides static methods to convert an XML text into a JSONArray or * JSONObject, and to covert a JSONArray or JSONObject into an XML text using * the JsonML transform. + * * @author JSON.org - * @version 2011-11-24 + * @version 2012-03-28 */ public class JSONML { @@ -95,8 +96,9 @@ public class JSONML { if (c == '-') { if (x.next() == '-') { x.skipPast("-->"); + } else { + x.back(); } - x.back(); } else if (c == '[') { token = x.nextToken(); if (token.equals("CDATA") && x.next() == '[') {