extract the js portions of an xml template for ease of debugging
extract the js portions of an xml template for ease of debugging

usage:

extract the = bits

  20150704-14:00:49 mengwong@venice:~% ~/non-db-src/l/www/bin/xml2js --ignorexmldeclarations --equals ~/non-db-src/l/www/templates/jfdi.asia/preemptive_waiver.xm
  l 2>/dev/null | less
  output( data.company.name );
  output( data.company.name );
  output( data.company.idtype );
  output( data.company.id );
  output( data.company.address );
  output( data.shareholder.name );
  output( data.shareholder.address );
  output( data.company.name );
  output( data.amount_raising );
  output( data.security_type_plural );
  output( data.security_type_short_plural );
  output( data.price_per_share );
  output( data.explanation );
  output(commaAnd(data.parties.new_investor,"name"));

extract the non = bits

  20150704-14:02:17 mengwong@venice:~% ~/non-db-src/l/www/bin/xml2js --ignorexmldeclarations --question ~/non-db-src/l/www/templates/jfdi.asia/preemptive_waiver.
  xml 2>/dev/null | less
   if(data.price_per_share){
  }
   if (data.explanation) {
   }

then copy and paste the output into http://jsbeautifier.org/
to see where the unmatched parens are

and the output of that into http://www.jslint.com/
to see any other errors.

byte/legalese.github.io,legalese-io/legalese-io.github.io,legalese/legalese.com,byte/legalese.github.io,legalese-io/legalese-io.github.io,byte/legalese.github.io,legalese-io/legalese-io.github.io,byte/legalese.github.io,legalese/legalese.com,legalese-io/legalese-io.github.io,legalese/legalese.com,legalese/legalese.com