OpenImmo/src/main/java/org/openestate/io/openimmo/OpenImmoUtils.java
@SuppressWarnings("Duplicates")
    public static Element createUserDefinedSimplefield(Document doc, String name, String value) {
        Element root = XmlUtils.getRootElement(doc);
        Element node = doc.createElementNS(root.getNamespaceURI(), "user_defined_simplefield");
        node.setAttribute("feldname", name);
        node.setTextContent(value);
        return node;
    }
@SuppressWarnings("Duplicates")
    public static Element createUserDefinedSimplefield(Document doc, String name, String value) {
        Element root = XmlUtils.getRootElement(doc);
        Element node = doc.createElementNS(root.getNamespaceURI(), "user_defined_simplefield");
        node.setAttribute("feldname", name);
        node.setTextContent(value);
        return node;
    }
@ SuppressWarnings ( "Duplicates" ) public static Element createUserDefinedSimplefield ( Document doc , String name , String value ) { Element root = XmlUtils . getRootElement ( doc ) ; Element node = doc . createElementNS ( root . getNamespaceURI ( ) , "user_defined_simplefield" ) ; node . setAttribute ( "feldname" , name ) ; node . setTextContent ( value ) ; return node ; }
Helper method to create a &lt;user_defined_simplefield&gt; element with a
"feldname" attribute and a string value.

@param doc   document, for which the element is created
@param name  value of the "feldname" attribute in the created element
@param value text value of the created element
@return created element
Helper method to create a &lt ; user_defined_simplefield&gt ; element with a feldname attribute and a string value .