public String[] toArray() throws Exception {
  return Utils.splitOptions(toCommandLine());
}

public String [ ] toArray ( ) throws Exception { return Utils . splitOptions ( toCommandLine ( ) ) ; }
returns the current dom document as string array .
