OpenDocument4all - Info and tools about OpenDocument
Sunday, 05 February 2012
Home arrow Forum
Forum Statistics
Total user: 89
Total message: 179
Main Menu
Home
My Blog
AODL - Project
AODC - Project
OO Development & Info
Forum
About OpenDocument ...
Search
News
Contact Us
Login Form





Lost Password?
No account yet? Register
Sourceforge.net

SourceForge.net - Goto the project homepage
Project site on SF.net

 

Demand OpenDocument

 

Countomat Webcounter und Webstatistik (Statistik & Logfileanalyse, Counter)

OpenDocument4all-Forum

 
How to access children of <office:text> tag
Date: 2008/11/24 22:05 By: kumarvidhani Status: User  
Karma: 0  
Fresh Boarder

Posts: 4
graphgraph
Hi,

I have tried to access children of <office:text> tag but it is giving zero count,
even though in content.xml it is showing two paragraph tags..

code is ...

TextDocument txtDoc = new TextDocument();
txtDoc.New();
txtDoc.Load("Preview_Test.odt");
XmlDocument xmlDocument = txtDoc.XmlDoc;
XmlNodeList xmlNodelist = xmlDocument.GetElementsByTagName("office:text");
foreach (XmlNode xmlNode in xmlNodelist)
{
foreach (XmlNodeList children in xmlNode.ChildNodes)
{
Console.WriteLine(xmlNode.Name);
}
}

can anybody please help??
kumarvidhani
The administrator has disabled public write access.

Quick jump
Download area
Who's Online
We have 29 guests online
Polls
Should AODL and AODC also implement export as PDF and RTF?
 
Popular
© 2005 MamboZ. All rights reserved.