[英]How to convert xml word table to html using c#
我有一个 word 文档(.xml 文件),我需要将表格转换为 html。 c# 是否有某种现有工具? 我从文档中获得 xml 的方式是:
Table table = element.Descendants<Table>().First();
string ttt = table.InnerXml;
Open XML PowerTools具有将 Word 文档转换为 HTML 的功能。 Note, though, that they are not using the strongly-typed classes of the Open XML SDK but rather the Linq to XML (eg, XElement
) classes.
顺便说一句,您永远不会使用内部 XML 来转换元素,而是使用外部 XML,其中包括w:tbl
元素。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.