* <code>boolean</code>, <code>double</code>, <code>integer</code>, and <code>long</code>. This
* lessens the risk of inferring a too restrictive type from the JSON sample. It will also make
* it easier to translate the XML back to JSON when JSON is used as target.
*/
private void reviseSimpleTypes() {
XmlNameFactory nameFactory = XmlNameFactory.nonConforming();
for (Element e : findElements("//xs:element[@type]")) {
String type = e.getAttribute("type");
QualifiedName qName = nameFactory.newQualifiedName(type);
if (XMLConstants.W3C_XML_SCHEMA_NS_URI.equals(nsCtx.getNamespaceURI(qName.getPrefix()))) {
QualifiedName revisedTypeName = translateSimpleType(nameFactory, qName);
e.setAttribute("type", revisedTypeName.toString());
}
}