简体   繁体   中英

Docx4j identify Table end Tag

Is there a way from Java using docx4j to identify that the table ended (identify table end tag)?

I'm looking everywhere and I can't seem to find a way for the code to identify any end tag let alone the table end tag.

In docx4j, a table is represented by a org.docx4j.wml.Tbl object.

There is no representation of its end tag at the object level.

But you can add something before the end tag, as it were, by adding it to the Tbl object.

Or you can add something after it, by adding to the content list containing the Tbl object.

If you need want to work at the level of the actual XML, you can marshall the content to a String, DOM or whatever, manipulate it, then unmarshall. But in practise this isn't usually necessary. (Though marshalling to a string is often handy for debugging)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM