@Override
    public void write(String[] value, String name, String[] defVal) throws IOException {
        if (value == null || Arrays.equals(value, defVal)) {
            return;
        }

        appendElement(name);

        XMLUtils.setAttribute(currentElement, XMLExporter.ATTRIBUTE_SIZE, String.valueOf(value.length));

        for (int i = 0; i < value.length; i++) {
            appendElement("string_" + i);

            if (value[i] != null) {
                XMLUtils.setAttribute(currentElement, "value", value[i]);
            }
            
            currentElement = (Element) currentElement.getParentNode();
        }

        currentElement = (Element) currentElement.getParentNode();
    }
appends a new Element with the given name to currentElement, sets
currentElement to be new Element, and returns the new Element as well
jme3-plugins/src/xml/java/com/jme3/export/xml/DOMOutputCapsule.java