Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf9ef032

Browse files
-->
1 parent9115ada commitf9ef032

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

‎JSONML.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,9 @@ of this software and associated documentation files (the "Software"), to deal
3131
* This provides static methods to convert an XML text into a JSONArray or
3232
* JSONObject, and to covert a JSONArray or JSONObject into an XML text using
3333
* the JsonML transform.
34+
*
3435
* @author JSON.org
35-
* @version2011-11-24
36+
* @version2012-03-28
3637
*/
3738
publicclassJSONML {
3839

@@ -95,8 +96,9 @@ private static Object parse(
9596
if (c =='-') {
9697
if (x.next() =='-') {
9798
x.skipPast("-->");
99+
}else {
100+
x.back();
98101
}
99-
x.back();
100102
}elseif (c =='[') {
101103
token =x.nextToken();
102104
if (token.equals("CDATA") &&x.next() =='[') {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp