Expand my Community achievements bar.

xmlns and xfa:dataNode attributes being added randomly to XML output.

Avatar

Former Community Member
I'm having problems validating the XML against a schema because I seem to be getting random xmlns and xfa:dataNode attributes added to some of my subforms. Looking through the XML, I can't find any reason for these to be there. Does anyone else know why these are being added?

2 Replies

Avatar

Former Community Member
Hi Aaron,



I found reference to this on page 91 of the pdf below



http://www.adobe.com/devnet/pdf/pdfs/xfa_spec_2_4.pdf



Here's a snipit

Explicit naming is available as an option in the Data DOM. However, in the Data DOM, the element tag is taken as the name by default, but may be overridden by the content of an attribute. Thus, nodes in the Data DOM always have names, one way or the other. See the XFA Names on page 70 for a description of the explicit naming option and how to invoke it. Consequently the "#" syntax is not usually needed for nodes in the Data DOM. One case in which it is needed is when the element tag contains characters that are not allowed in the names of objects by the scripting language. For example, FormCalc does not support object names containing a minus ("-") character. If such an element is loaded into the Data DOM without mapping the name to something else (another load option), the resulting dataGroup or

dataValue object cannot be referenced using the usual syntax. In such a case, it is necessary to use #dataGroup or #dataValue, respectively.



Hope this helps.

Pam

Avatar

Former Community Member
I've narrowed the problem down to these attributes being added on subforms that contain no bound items. Is there a way to prevent these attributes from being created?