title: What are Short Hand Guidelines? Want to use Xml.parseJS()
body: <p>Can anyone tell me where to find the "Short Hand guidelines" referred to here:</p>
  
  <p><a href="https://developers.google.com/apps-script/class_xml#parseJS" rel="nofollow">https://developers.google.com/apps-script/class_xml#parseJS</a></p>
  
  <pre><code>function createXmlDocument() {
    var elementName   = 'customerName';
    var customerName = 'Bad Boys Inc.';
    var parseJSparameter = [elementName, customerName];
    var xmlDoc = Xml.parseJS(parseJSparameter);
    var textOfXml = xmlDoc.toXmlString();
    Logger.log(textOfXml);
  }
  
  function createXmlDocument2() {
    var shortHand = ['customer', 
                     {'active' : 'true'},
                     ['name', 'Bad Boys Inc.'], 
                     ['customerId', '6060']
                    ];
    var xmlDoc = Xml.parseJS(shortHand);
    var textOfXml = shortHand.toXmlString();
    Logger.log(textOfXml);
  }
  </code></pre>
  
  <p>createXmlDocument works but createXmlDocument2 doesn't.</p>