WordOpenXML

StructuredDocumentTag.WordOpenXML property

Obtiene una cadena que representa el XML contenido dentro del nodo en elFlatOpc formato.

public string WordOpenXML { get; }

Ejemplos

Muestra cómo obtener XML contenido dentro del nodo en formato FlatOpc.

Document doc = new Document(MyDir + "Structured document tags.docx");

List<StructuredDocumentTag> tags = doc.GetChildNodes(NodeType.StructuredDocumentTag, true)
    .OfType<StructuredDocumentTag>().ToList();

Assert.True(tags[0].WordOpenXML
    .Contains(
        "<pkg:part pkg:name=\"/docProps/app.xml\" pkg:contentType=\"application/vnd.openxmlformats-officedocument.extended-properties+xml\">"));

Ver también