OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

exporting XML data of a Xforms without submit

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API
View previous topic :: View next topic  
Author Message
gioppo
General User
General User


Joined: 30 Aug 2007
Posts: 23

PostPosted: Fri Oct 26, 2007 2:55 am    Post subject: exporting XML data of a Xforms without submit Reply with quote

OK.
If I use a submit within an Xforms and post to a servlet I find my XML data.
But If I need the XML data (as a string) bacause I want for example print it inside the writer how can I do?
No methods for retrieving the XML ... something like a toString ... or serialize ... or marshall
Thanks
Luca
Back to top
View user's profile Send private message Visit poster's website
gioppo
General User
General User


Joined: 30 Aug 2007
Posts: 23

PostPosted: Mon Oct 29, 2007 3:46 am    Post subject: more explanation Reply with quote

To be more clear:
I have the following code
Code:

   theXform = ThisComponent.getXForms

   myModel = theXform.getByName("theModel")

   theInst = myModel .getDefaultInstance
   root = theInst.getDocumentElement


Now I want to get the XML string of the content of root.
There must be something that can be invoked to get it.
If I make the the Xform submit over HTTP POST I get the XML so somewhere inside OO there must be a serialize.
Luca
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Macros and API All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group