@@ -0,0 +1,2045 @@
+package org.kordamp.json.xml;%0A%0Aimport org.custommonkey.xmlunit.XMLTestCase;%0Aimport org.kordamp.json.JSON;%0Aimport org.kordamp.json.JSONArray;%0Aimport org.xml.sax.SAXException;%0A%0Aimport javax.xml.parsers.ParserConfigurationException;%0Aimport java.io.IOException;%0A%0Apublic class TestXmlContainingJSONSpecials extends XMLTestCase %7B%0A    public void testXmlWithBracketArray() throws IOException, SAXException, ParserConfigurationException %7B%0A        final String xml = %22%3C?xml version=%5C%221.0%5C%22 encoding=%5C%22UTF-8%5C%22?%3E%5Cn%22 + %22%3Cdata%3E%3Ce%3E%7B%7D%3C/e%3E%3Ce%3E%7B%7D%3C/e%3E%3C/data%3E%22;%0A%0A        final XMLSerializer tested = new XMLSerializer();%0A        tested.setParseJsonLiterals(false);%0A        tested.setTypeHintsEnabled(false);%0A        tested.setRootName(%22data%22);%0A%0A        final JSON jsonRepresentation = tested.read(xml);%0A        final String result = tested.write(jsonRepresentation);%0A%0A        assertXMLEqual(xml, result);%0A%0A        final String jsonText = jsonRepresentation.toString();%0A        assertTrue(jsonText.contains(%22%5B%5C%22%7B%7D%5C%22%22));%0A    %7D%0A%0A    public void testXmlWithSpaceArray() throws IOException, SAXException, ParserConfigurationException %7B%0A        String xml =%0A            %22%3C?xml version=%5C%221.0%5C%22 encoding=%5C%22UTF-8%5C%22?%3E%5Cn%22 +%0A                %22%3Ce%3E%5Cn%22 +%0A                %22   %3Ccommand%3E%5Cn%22 +%0A                %22      %3Cupdate%3E%5Cn%22 +%0A                %22            %3Cchg%3E%5Cn%22 +%0A                %22                  %3Caddr%3E%5Cn%22 +%0A                %22                      %3Cstreet%3E   %3C/street%3E%22 +%0A                %22                      %3Cstreet%3E   %3C/street%3E%22 +%0A                %22                  %3C/addr%3E%22 +%0A                %22            %3C/chg%3E%5Cn%22 +%0A                %22      %3C/update%3E%5Cn%22 +%0A                %22   %3C/command%3E%5Cn%22 +%0A                %22%3C/e%3E%22;%0A%0A        final XMLSerializer tested = new XMLSerializer();%0A        //tested.setKeepCData(true);%0A        tested.setTypeHintsEnabled(false);%0A        tested.setRootName(%22data%22);%0A%0A        final JSON jsonRepresentation = tested.read(xml);%0A        final String jsonText = jsonRepresentation.toString();%0A        assertTrue(jsonText.contains(%22%5B%5C%22   %5C%22%22));%0A    %7D%0A%7D%0A

Add missing test for #29