@ Nullable public static String getNodeAsString ( @ Nonnull final IMicroNode aNode , @ Nonnull final IXMLWriterSettings aSettings ) { ValueEnforcer . notNull ( aNode , "Node" ) ; ValueEnforcer . notNull ( aSettings , "Settings" ) ; try ( final NonBlockingStringWriter aWriter = new NonBlockingStringWriter ( 50 * CGlobal . BYTES_PER_KILOBYTE ) ) { // start serializing if ( writeToWriter ( aNode , aWriter , aSettings ) . isSuccess ( ) ) return aWriter . getAsString ( ) ; } catch ( final Exception ex ) { if ( LOGGER . isErrorEnabled ( ) ) LOGGER . error ( "Error serializing MicroDOM with settings " + aSettings . toString ( ) , ex ) ; } return null ; }
Convert the passed micro node to an XML string using the provided settings .