code: public T writeXml(org.w3c.dom.Node node, boolean format) throws IOException {
          getWorld().getXml().getSerializer().serialize(node, this, format);
          return (T) this;
      }
docs: Write the specified node into this file. Adds indentation/newlines when format is true. Otherwise, writes
  the document "as is" (but always prefixes the document with an xml declaration and encloses attributes in
  double quotes).
  
  @return this node