Issue with xfa.host.exportData("",0)??


hello all,

 

the .xml file created xfa.host.exportdata("",0) failes validate due presence of empty tags when submitting.

 

below sample.......

 

the empty tags represent optional fields on form. i.e twodoorpassengervolumemeasure not required in submissions.

 

how can remove these before generating file?

 

thanks in advance!!

 

 

<?xml version="1.0" encoding="utf-8" ?>

- <v:carlinesubmission xmlns:v="https://rrevm-veerr.ss.ec.gc.ca/">

- <v:submissionauthordetails>

  <v:manufacturercode>e97</v:manufacturercode>

  <v:modelyear>2013</v:modelyear>

  </v:submissionauthordetails>

- <v:carlineinformationdetails>

  <v:manufacturerdivisioncode>1</v:manufacturerdivisioncode>

  <v:carlinecode>2</v:carlinecode>

  <v:carlineclasscode>2</v:carlineclasscode>

  <v:fullcarlinename>test</v:fullcarlinename>

- <v:vehiclevolumemeasuredetails>

  <v:averagepassengervolumemeasure>40.000</v:averagepassengervolumemeasure>

  <v:averageluggagevolumemeasure>35.000</v:averageluggagevolumemeasure>

  <v:twodoorpassengervolumemeasure />

  <v:twodoorluggagevolumemeasure />

  <v:fourdoorpassengervolumemeasure />

  <v:fourdoorluggagevolumemeasure />

  <v:hatchbackpassengervolumemeasure />

  <v:hatchbackluggagevolumemeasure />

  </v:vehiclevolumemeasuredetails>

  </v:carlineinformationdetails>

  </v:carlinesubmission>

 

 

hi ken,

 

has xml schema got minoccurs="0" twodoorpassengervolumemeasure element?  if has there should dd:nulltype="exclude" attribute added datadescription section of form (you should able find in xml source view).  doesn't added far know if minoccurs on complex type, have add manually (we use macro quite specific our style of xml schema).

 

there more nulltype attribute @ john brinkman's blog http://blogs.adobe.com/formfeed/2009/12/null_data_handling.html

 

good luck,

 

bruce



More discussions in LiveCycle Designer


adobe

Comments

Popular posts from this blog

How to change text Component easybook reloaded *newbee* - Joomla! Forum - community, help and support

After Effect warning: A problem occurred when processing OpenGL commands

Preconditions Failed. - Joomla! Forum - community, help and support