我在现有文档中生成和插入xml时遇到问题。
<table:table table:template-name="default">
<table:table-column />
<table:table-column />
<table:table-column />
<table:table-row>
<table:table-cell>
<text:p>1</text:p>
</table:table-cell>
<table:table-cell>
<text:p>2</text:p>
</table:table-cell>
<table:table-cell>
<text:p>3</text:p>
</table:table-cell>
</table:table-row>
</table:table>
此代码我成功插入文档(并在文档xml中可见)但不可见以供阅读。底线:插入的xml存在于源代码中,但不可见。
xml表示例取自:http://user.services.openoffice.org/en/forum/viewtopic.php?f=10&t=28229
注意:生成的文档xml有效 - 此处没有标记不匹配。
我正在使用OpenOffice模板文档(.ott)
答案 0 :(得分:1)
抱歉,我的坏:)
我也在使用<table:list>
,应首先关闭这些标记:
</text:list-item></text:list>