| View previous topic :: View next topic |
| Author |
Message |
gioppo General User

Joined: 30 Aug 2007 Posts: 23
|
Posted: Fri Oct 26, 2007 2:55 am Post subject: exporting XML data of a Xforms without submit |
|
|
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 |
|
 |
gioppo General User

Joined: 30 Aug 2007 Posts: 23
|
Posted: Mon Oct 29, 2007 3:46 am Post subject: more explanation |
|
|
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 |
|
 |
|