Syntext Forums - Serna Enterprise XML Editor, Serna Free XML Editor
(#1 (permalink))
Old
Junior Member
 
Posts: 4
Join Date: Sep 2009
Default load open document in memory - 10-02-2009, 01:55 PM

I have get the instance of document in grove in this way:

self.se = self.sernaDoc().structEditor()
document = self.se.sourceGrove().document()

I want for my example.. read xml document code and print it in a message box or write in text file...
there is a command for read grove like a simple text file?
Reply With Quote
(#2 (permalink))
Old
Junior Member
 
Posts: 26
Join Date: Jul 2009
Default 10-02-2009, 08:09 PM

To get the content of the grove, I'm using a Grove method saveAsXmlString:
targetString = SString()
self.grove.saveAsXmlString(targetString, 2039)

Second parameter value depends on your purpose; there are a lot of options to set it; take a look at hte Serna Help for enum SaveFlags.

Hopefully this will help.
Reply With Quote
(#3 (permalink))
Old
Junior Member
 
Posts: 26
Join Date: Jul 2009
Default 10-02-2009, 08:14 PM

In the example above:

self.grove = self.se.sourceGrove()
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.3.1
vBulletin Skin developed by: vBStyles.com