wordOpenXML property

StructuredDocumentTag.wordOpenXML property

Gets a string that represents the XML contained within the node in the SaveFormat.FlatOpc format.

get wordOpenXML(): string

Examples

Shows how to get XML contained within the node in the FlatOpc format.

let doc = new aw.Document(base.myDir + "Structured document tags.docx");

var tags = doc.getChildNodes(aw.NodeType.StructuredDocumentTag, true);

expect(tags.at(0).asStructuredDocumentTag().wordOpenXML.includes(
    "<pkg:part pkg:name=\"/docProps/app.xml\" pkg:contentType=\"application/vnd.openxmlformats-officedocument.extended-properties+xml\">")).toEqual(true);

See Also