enketo / enketo-legacy

The OLD app that started the Enketo revolution. An offline-capable web survey application that is compatible with OpenRosa XForm-derived format and compliant servers.
https://enketo.org
Apache License 2.0
21 stars 26 forks source link

edit instance provided by Aggregate has n0 namespace for meta and child nodes #222

Closed MartijnR closed 11 years ago

MartijnR commented 11 years ago

Aggregate adds the n0: namespace to meta and instanceID apparently.

<Household id="Household" instanceID="uuid:ce678acb-83ba-4bc7-b90a-e62fdbc6b085" submissionDate="2013-11-15T12:32:05.000+05:30" isComplete="true" markedAsCompleteDate="2013-11-15T12:32:05.000+05:30"><heading/><Type_Of_Disaster>Cyclone</Type_Of_Disaster><date_and_time/><assessment_by>Rakesh Test 3</assessment_by><n0:meta><n0:instanceID>uuid:ce678acb-83ba-4bc7-b90a-e62fdbc6b085</n0:instanceID></n0:meta></Household>
MartijnR commented 11 years ago

enketo should at least be able to deal with jr:namespace meta nodes and children https://bitbucket.org/javarosa/javarosa/wiki/OpenRosaMetaDataSchema

Maybe just by stripping them /<\s?\/?((jr|n0):).*>/g

MartijnR commented 11 years ago

moved: https://github.com/MartijnR/enketo-core/issues/88