开发者

How to create XML in the style used in an OpenOffice document

开发者 https://www.devze.com 2023-02-18 22:38 出处:网络
I nee开发者_C百科d to create some XML in the following style: <text:p>One</text:p> <text:p>two

I nee开发者_C百科d to create some XML in the following style:

  <text:p>One</text:p>
  <text:p>two
    <text:span>three
      <text:line-break/>four
      <text:line-break/>five
      <text:line-break/>six
    </text:span>seven
  </text:p>
  <text:p>eight</text:p>

but I can't work out how to add the text and line-break nodes next to each other. Using .NET XML classes.


And the answer is to set the InnerXml property of the text:span node, making sure to have appended it to the document first so that it doesn't complain about undeclared namespaces.

0

精彩评论

暂无评论...
验证码 换一张
取 消