## clear() {#default} Removes all elements from the collection. ```js clear() ``` ### Examples Shows how to create a structured document tag with custom XML data. ```js let doc = new aw.Document();......xmlPartContent = "<root><text>Hello world!</text></root>"; let xmlPart...setMapping(xmlPart, "/root[1]/text[1]", ''); doc.firstSection.body...