Closed dmenne closed 4 years ago
cat(paste(form_xml(FALSE), collapse = "\n"), file = "a.xml")
Or is there an easier way?
Form field labels and hints are contained in the form definition. In contrast, the form_schema only contains database names of form fields and their path in the form, but not presentation elements like labels and hints.
ruODK gets mainly form data against the database names of fields. If you need other parts of the form definition, you can export the form definition both as XForm and as XLSForm - the latter only works if you have created the ODK Central form from an XLSform.
ruODK isn't doing anything nice with the XForm XML apart from representing it as a nested list.
I see three ways to re-create the form:
form_schema_parse
Closing and continuing discussion at #77
To recreate the form as as pdf-report, I need access to the labels and hints.
Where to find these?