WordOpenXML

StructuredDocumentTag.WordOpenXML property

Ottiene una stringa che rappresenta l’XML contenuto nel nodo inFlatOpc formato.

public string WordOpenXML { get; }

Esempi

Mostra come ottenere l’XML contenuto nel nodo nel 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\">"));

Guarda anche