We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 143db39 commit 8f3e5adCopy full SHA for 8f3e5ad
images/JsonJava.png
15.3 KB
src/test/java/org/json/junit/XMLTest.java
@@ -65,6 +65,15 @@ public class XMLTest {
65
@Rule
66
public TemporaryFolder testFolder = new TemporaryFolder();
67
68
+ @Test
69
+ public void what() {
70
+ String s = "<example><value attribute=\"value\"><![CDATA[some treatment <b>plant</b> with bio chemicals]]></value></example>";
71
+ JSONObject jo = XML.toJSONObject(s);
72
+ System.out.println(jo.toString());
73
+ }
74
+
75
76
77
/**
78
* JSONObject from a null XML string.
79
* Expects a NullPointerException
0 commit comments