Transforming XML Form to JSON "Schema"

Hello everyone,

My name is Ile, I am one of the core contributors to OpenFn
(https://www.openfn.org/).

We’ve noticed that CommCareHQ has the ability for a user to upload a XForm
and convert it into JSON, that looks similar to the JSON Schema standard.
More specifically, the endpoint described here:
https://confluence.dimagi.com/display/commcarepublic/Form+Data

We, at OpenFn, at the moment are building ODK Form -> JSON Schema (kind of
a) transformer and seeing what you people have done with your
implementation of the
aforementioned API ednpoint can be very helpful to us.

Since there’s a lot of open source software on your Github Org page, can
you point me to the repo(s) where this part of the system is stored?

Thank you,
Ile

I think the code you’re looking for is in this very small repository:
https://github.com/dimagi/xml2json. It’s an internal format that we use for
easy access, but it doesn’t specifically adhere to the JSON Schema or any
other standard.

Cheers,
Danny

··· On Wed, Aug 26, 2015 at 10:48 AM Ile Eftimov wrote:

Hello everyone,

My name is Ile, I am one of the core contributors to OpenFn (
https://www.openfn.org/).

We’ve noticed that CommCareHQ has the ability for a user to upload a XForm
and convert it into JSON, that looks similar to the JSON Schema standard.
More specifically, the endpoint described here:
https://confluence.dimagi.com/display/commcarepublic/Form+Data

We, at OpenFn, at the moment are building ODK Form -> JSON Schema (kind of
a) transformer and seeing what you people have done with your
implementation of the
aforementioned API ednpoint can be very helpful to us.

Since there’s a lot of open source software on your Github Org page, can
you point me to the repo(s) where this part of the system is stored?

Thank you,
Ile


You received this message because you are subscribed to the Google Groups
"CommCare Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Hi

You could also look at https://github.com/wookieelabs/odk2json

Regards

··· On Wed, Aug 26, 2015 at 12:23 PM, Danny Roberts wrote:

I think the code you’re looking for is in this very small repository:
https://github.com/dimagi/xml2json. It’s an internal format that we use
for easy access, but it doesn’t specifically adhere to the JSON Schema or
any other standard.

Cheers,
Danny

On Wed, Aug 26, 2015 at 10:48 AM Ile Eftimov ileeftimov@gmail.com wrote:

Hello everyone,

My name is Ile, I am one of the core contributors to OpenFn (
https://www.openfn.org/).

We’ve noticed that CommCareHQ has the ability for a user to upload a
XForm and convert it into JSON, that looks similar to the JSON Schema
standard.
More specifically, the endpoint described here:
https://confluence.dimagi.com/display/commcarepublic/Form+Data

We, at OpenFn, at the moment are building ODK Form -> JSON Schema (kind
of a) transformer and seeing what you people have done with your
implementation of the
aforementioned API ednpoint can be very helpful to us.

Since there’s a lot of open source software on your Github Org page, can
you point me to the repo(s) where this part of the system is stored?

Thank you,
Ile


You received this message because you are subscribed to the Google Groups
"CommCare Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
"CommCare Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to commcare-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Ian Lawrence
Tel: (+55 48) 84933198
E-mail: ian@codezon.com
Web: http://ianlawrence.info
Code: https://github.com/IanLawrence
Author, Professional Ubuntu Mobile Development (Wiley 2009)