content: root = createObject("roXmlElement")
  root.SetName("myroot")
  root.AddAttribute("key1","value1")
  root.AddAttribute("key2","value2")
  ne=root.AddBodyElement()
  ne.SetName("sub")
  ne.SetBody("this is the sub1 text")
  ne=root.AddBodyElement()
  ne.SetName("subelement2")
  ne.SetBody("more sub text")
  ne.AddAttribute("k","v")
  ne=root.AddElement("subelement3")
  ne.SetBody("more sub text 3")
  root.AddElementWithBody("sub","another sub (#4)")
  ' PrintXML(root, 0)
  print root.GenXML(false)