简体   繁体   中英

Create XML file for Orbeon form?

I have created the Orbeon form. How do we save the form in XML format. Let's say I have created a button in my form. On click of the button I need to generate the XML for created form.

在此处输入图片说明

On click of the edit button It is showing the code for the form. Now I need to generate the same code in XML format on button click event.

Any suggestions?

So my understanding based on the comments above is that you would like to parse the XML of the form definition in order to create POJO classes.

In this case, I think the right time to do this is when the form is published .

If you have your own persistence layer implementation you could easily hook up when receiving a PUT of the form definition when it is published. But other than that the problem is that there are no hooks for this at this point.

You could place a button in the form which only works at design time, but that would be quite hacky: you would have to write your own XForms, probably in each form you create, and hide the button at runtime.

If at runtime, then the XML of the form definition is not available.

In short I don't think you can do this without making more involved changes to Form Builder.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM