Kyero/src/main/java/org/openestate/io/kyero/converters/Kyero_3.java
protected void downgradeTypeElements(Document doc) throws JaxenException {
        List nodes = XmlUtils.newXPath(
                "/io:root/io:property/io:type",
                doc).selectNodes(doc);
        for (Object item : nodes) {
            Element node = (Element) item;
            String value = StringUtils.trimToNull(node.getTextContent());
            node.setTextContent(null);

            Element childNode = doc.createElementNS(KyeroUtils.NAMESPACE, "en");
            childNode.setTextContent(value);
            node.appendChild(childNode);
        }
    }
protected void downgradeTypeElements(Document doc) throws JaxenException {
        List nodes = XmlUtils.newXPath(
                "/io:root/io:property/io:type",
                doc).selectNodes(doc);
        for (Object item : nodes) {
            Element node = (Element) item;
            String value = StringUtils.trimToNull(node.getTextContent());
            node.setTextContent(null);

            Element childNode = doc.createElementNS(KyeroUtils.NAMESPACE, "en");
            childNode.setTextContent(value);
            node.appendChild(childNode);
        }
    }
Downgrade &lt;type&gt; elements to Kyero 2.1.
<p>
The &lt;type&gt; elements require a &lt;en&gt; child element in version
2.1.
<p>
An &lt;en&gt; child element is created for any &lt;type&gt; element.

@param doc Kyero document in version 3
@throws JaxenException if xpath evaluation failed