I have a question. I created a form, which once submitted, it sends the data in the following format:
<?xml version="1.0" encoding="UTF-8"?> <form xmlns:xxi="http://orbeon.org/oxf/xml/xinclude" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:ev="http://www.w3.org/2001/xml-events" xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:saxon="http://saxon.sf.net/" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xbl="http://www.w3.org/ns/xbl" xmlns:exforms="http://www.exforms.org/exf/1-0" xmlns:sql="http://orbeon.org/oxf/xml/sql" xmlns:pipeline="java:org.orbeon.oxf.processor.pipeline.PipelineFunctionLibrary" xmlns:fr="http://orbeon.org/oxf/xml/form-runner" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xxforms="http://orbeon.org/oxf/xml/xforms" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <secaoDadosUsuario> <nome>Emerson</nome> <estadoCivil>2</estadoCivil> </secaoDadosUsuario> </form> In my persistence layer, I will get the content of the leaves and add it as a variable to my jbpm proccess using the wrapping tag as the name. On the way back, let's, when I will edit the form (haven't implemented that yet), I presume I need to construct the exact same XML to be shown in the client. I have three questions: 1) Do I need to have all the tags, including the namespace declaration? 2) Do i need to save somehow this metadata (eg: sections, etc) with my form structure, so that I can re-form the xml? 3) How can I get the metadate, let's say, a xml without values, so that I can populated it with the values from the variables I'm storing at the proccess? Thanks a lot Emerson |
Administrator
|
Emerson,
> 1) Do I need to have all the tags, including the namespace declaration? No, in fact ideally Form Runner would not generate these at all! > 2) Do i need to save somehow this metadata (eg: sections, etc) with my form > structure, so that I can re-form the xml? Not sure I understand this one. > 3) How can I get the metadate, let's say, a xml without values, so that I > can populated it with the values from the variables I'm storing at the > proccess? You must get the form definition (form.xhtml) from the persistence layer, then extract from that XHTML document the content of the "fr-form-instance" instance. -Erik > > Thanks a lot > Emerson > > > -- > View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/XML-structure-is-needed-to-send-the-XML-to-the-client-tp3504527p3504527.html > Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com. > > > -- > You receive this message as a subscriber of the [hidden email] mailing list. > To unsubscribe: mailto:[hidden email] > For general help: mailto:[hidden email]?subject=help > OW2 mailing lists service home page: http://www.ow2.org/wws > > -- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: mailto:[hidden email] For general help: mailto:[hidden email]?subject=help OW2 mailing lists service home page: http://www.ow2.org/wws |
Free forum by Nabble | Edit this page |