kumarvidhani General User

Joined: 06 Nov 2008 Posts: 8
|
Posted: Mon Nov 24, 2008 3:19 am Post subject: OpenDocument XML and C# |
|
|
Hi,
I am trying to generate OpenOffice Document in C#. Here is my code:
TextDocument txtDoc = new TextDocument();
txtDoc.New();
txtDoc.Load("Preview_Test.odt");
XmlDocument xmlDocument = txtDoc.XmlDoc
XmlNodeList documentChildren = xmlDocument.GetElementsByTagName("text:p");
even though there exists elements with text:p tag it is returning null.
while for
XmlNodeList documentChildren = xmlDocument.GetElementsByTagName("office:body");
or
XmlNodeList documentChildren = xmlDocument.GetElementsByTagName("office:text");
it is not returning null.
I do not why I am not able to get reference of paragraph tags of document. |
|