-
-
Notifications
You must be signed in to change notification settings - Fork 74
Open
Description
The following test case fails,
The difference between this test and testXmlWithSpaceArray which works is the xmlns attribute on the 'e' element.
public void testXmlWithSpaceArrayNamespace() throws IOException, SAXException, ParserConfigurationException {
String xml =
"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
"<e xmlns=\"urn:foo-1.0\">\n" +
" <c>\n" +
" <u>\n" +
" <chg>\n" +
" <a>\n" +
" <s> </s>" +
" <s> </s>" +
" </a>" +
" </chg>\n" +
" </u>\n" +
" </c>\n" +
"</e>";
final XMLSerializer tested = new XMLSerializer();
//tested.setKeepCData(true);
tested.setTypeHintsEnabled(false);
tested.setRootName("data");
final JSON jsonRepresentation = tested.read(xml);
final String jsonText = jsonRepresentation.toString();
assertTrue(jsonText.contains("[\" \""));
}
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels