Thanks for your reply. I knew this way to obtain the html. Currently, what I did is, get the document’s sections, and then render the body, and then render the childnodes of body, and then recursively render the node and it’s childnodes. And if the node is a table, I returned my own html (div). For other nodes, return standard html string. (x.ToString(SaveFormat.Html)). This looks not good and some nodes might be missing. What I wondered was whether there is a method or callback to replace the standard html. Somethind like this:
var saveOptions = new HtmlSaveOption(SaveFormat.Html);
saveOptions.OnRendering += RenderElement…
Or there is a plugin like DoumentVisitor for html generation, like:
doc.Accept(new TableHtmlConvertor());
When doc saving, it would call either the event or plugin to get the html string. If the method returns nothing, then use standard html string, otherwise use customized one.
I had done a basic html generation by document tree nodes traversal. However, most nodes use standard one. So I asked here to check if I miss something.
Thanks.