Skip to content

Command Line XLSForm to XForm Using pyxform

Nicholas Hallahan edited this page Feb 18, 2015 · 1 revision

You can generate XForm XML from XLSForms easily on the command line using pyxform. This is an alternative to using stage.ona.io which will do this for you automatically.

Setup

You need to clone the pyxform repo and checkout the osm branch.

git clone https://github.com/onaio/pyxform.git
cd pyxform
git checkout osm

Run

The python script that will do the command line conversion is pyxform/xls2xform.py. You can then convert an xls form as such:

python pyxform/xls2xform.py [path-to-xls.xls] [output-xform-path.xml]

Now you can drag-n-drop the generated xform XML file onto your android device at odk/forms/.

Clone this wiki locally