code: public final String rewriteXml(
          Node xmlDoc,
          String aloneTags[]
      ) {
          return rewriteXml(
              xmlDoc,
              aloneTags,
              false
          );
      }
docs: rewrite the given xmlfile
  
  @param xmlDoc xml file as a dom node
  @param aloneTags a string array of empty tags
  
  @return the rewrited xml.