code: @Nullable
    public static byte [] getNodeAsBytes (@Nonnull final IMicroNode aNode, @Nonnull final IXMLWriterSettings aSettings)
    {
      ValueEnforcer.notNull (aNode, "Node");
      ValueEnforcer.notNull (aSettings, "Settings");
  
      try (
          final NonBlockingByteArrayOutputStream aBAOS = new NonBlockingByteArrayOutputStream (50 *
                                                                                               CGlobal.BYTES_PER_KILOBYTE))
      {
        // start serializing
        if (writeToStream (aNode, aBAOS, aSettings).isSuccess ())
          return aBAOS.toByteArray ();
      }
      catch (final Exception ex)
      {
        if (LOGGER.isErrorEnabled ())
          LOGGER.error ("Error serializing MicroDOM with settings " + aSettings.toString (), ex);
      }
      return null;
    }
docs: Convert the passed micro node to an XML byte array using the provided
  settings.
  
  @param aNode
  The node to be converted to a byte array. May not be
  <code>null</code> .
  @param aSettings
  The XML writer settings to use. May not be <code>null</code>.
  @return The byte array representation of the passed node.
  @since 8.6.3