private void setValueFromObject(org.w3c.dom.Node n) {
        DOMProcessing.trimNode(n);
        try {
            setValue(DOMProcessing.writeToString(n));
        } catch (TransformerConfigurationException e) {
            setValue(n.toString());  // TODO: not the most compelling handling
        } catch (TransformerException e) {
            setValue(n.toString()); //TODO: not the most compelling handling
        }
    }
private void setValueFromObject ( org . w3c . dom . Node n ) { DOMProcessing . trimNode ( n ) ; try { setValue ( DOMProcessing . writeToString ( n ) ) ; } catch ( TransformerConfigurationException e ) { setValue ( n . toString ( ) ) ; } catch ( TransformerException e ) { setValue ( n . toString ( ) ) ; } }
Converts a DOM into a string representation, after "normalizing" it.

@param n DOM Node to convert.