We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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("[\" \"")); }
The text was updated successfully, but these errors were encountered:
Generated JSON without the namespace:
{"command":{"update":{"chg":{"addr":[" "," "]}}}}
Generated JSON with the namespace:
{"@xmlns":"urn:foo-1.0","command":{"update":{"chg":{"addr":{"street":[{},{}]}}}}}
Sorry, something went wrong.
No branches or pull requests
The following test case fails,
The difference between this test and testXmlWithSpaceArray which works is the xmlns attribute on the 'e' element.
The text was updated successfully, but these errors were encountered: