When I have an xml:lang attribute in my instance data, there is a problem when submitting the generated form to the server, i.e. the server cannot parse the received XML.
This is due to a namespace problem with the xml:lang.
For example, if I have an instance:
<CRF xmlns="" xml:lang="en">...</CRF>
what the server receives on submit is:
<CRF xmlns=""
xmlns:pre1="http://www.w3.org/XML/1998/namespace"
xmlns:pre2="http://www.w3.org/2001/XML-Schema-instance"
pre1:lang="en">...</CRF>
and when the receiving application tries to parse this, it complains:
'Error reported by XML parser: The prefix "xml" cannot be bound to any namespace other than its usual namespace; neither can the namespace for "xml" be bound to any prefix other than "xml".'
In the data, it is clear that 'pre1' should be 'xml'.
If necessary, I can send you a full example file.
With best regards,
Jozef