Skip to content

How to delete a table from document #451

@Aled210

Description

@Aled210

I process a word document where I need to replace some forms and eventually delete or hide tables based on condition.
At the moment I didn't find any way to achieve it.
What I tried is to manipulate the xml by unmarshalling it, here's how:

`
buf := new(bytes.Buffer)
buf.WriteString("")

decoder := xml.NewDecoder(buf)

err := doc.X().UnmarshalXML(decoder, xml.StartElement{})
if err != nil {
	fmt.Println(err)
}

`

The error I get is:
XML syntax error on line 1: unexpected EOF

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions