Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

Every form in a CommCare application can be identified by a unique value called an XMLNS. This value usually looks like a URL starting with "http://openrosa.org/formdesigner/" and is used in various places throughout CommCare - including exports and APIs - to identify the form and corresponding data submissions.

You can find the XMLNS for any given form by opening your form in the Application Builder and from the hamburger menu choosing "Edit Source XML".  From there look for a variable defined on the <data> XML attribute called "xmlns". You do not want one that has "xmlns:jrm", "xmlns:orx" or any other value.

In the below (abbreviated) example, the XMLNS value is "http://openrosa.org/formdesigner/3BAC6D49-D1A2-4D41-A39C-DAA034326670".

<?xml version="1.0" encoding="UTF-8" ?>
<h:html xmlns:h="http://www.w3.org/1999/xhtml" xmlns:orx="http://openrosa.org/jr/xforms" xmlns="http://www.w3.org/2002/xforms" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:jr="http://openrosa.org/javarosa" xmlns:vellum="http://commcarehq.org/xforms/vellum">
	<h:head>
		<h:title>New Form</h:title>
		<model>
			<instance>
				<data xmlns:jrm="http://dev.commcarehq.org/jr/xforms" xmlns="http://openrosa.org/formdesigner/3BAC6D49-D1A2-4D41-A39C-DAA034326670" uiVersion="1" version="1" name="New Form">
					<name />
				</data>
			</instance>
		</model>
	</h:head>
</h:html>

An alternative way to find the XMLNS of a form is to go to your Data exports and create a new export using the form. Then look for the URL parameter called "export_tag" in your browser's URL bar.

  • No labels