Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to delete a table from document #451

Open
Aled210 opened this issue Jun 30, 2021 · 1 comment
Open

How to delete a table from document #451

Aled210 opened this issue Jun 30, 2021 · 1 comment

Comments

@Aled210
Copy link

Aled210 commented Jun 30, 2021

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

@github-actions
Copy link

Welcome! Thanks for posting your first issue. The way things work here is that while customer issues are prioritized,
other issues go into our backlog where they are assessed and fitted into the roadmap when suitable.
If you need to get this done, consider buying a license which also enables you to use it in your commercial products.
More information can be found on https://unidoc.io/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant