Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Issue with"",0)??

Level 1
Level 1

Hello All,

The .xml file created by"",0) failes to validate due to the presence of empty tags when submitting.

Below is a sample.......

The empty tags represent optional fields on my form. i.e TwoDoorPassengerVolumeMeasure is not required in some submissions.

How can remove these before generating this file?

Thanks in advance!!

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

- <v:CarlineSubmission xmlns:v="">

- <v:SubmissionAuthorDetails>




- <v:CarlineInformationDetails>





- <v:VehicleVolumeMeasureDetails>



  <v:TwoDoorPassengerVolumeMeasure />

  <v:TwoDoorLuggageVolumeMeasure />

  <v:FourDoorPassengerVolumeMeasure />

  <v:FourDoorLuggageVolumeMeasure />

  <v:HatchbackPassengerVolumeMeasure />

  <v:HatchbackLuggageVolumeMeasure />




2 Replies
Level 10
Level 10

Hi Ken,

Has your XML Schema got the minOccurs="0" for the TwoDoorPassengerVolumeMeasure element?  If it has there should be a dd:nullType="exclude" attribute added to the dataDescription section of your form (you should be able to find it in the XML Source view).  It sometimes doesn't get added but as far as I know only if the minOccurs is on a complex type, so you would then have to add it manually (we use a macro but it is quite specific to our style of XML Schema).

There is more about the nullType attribute at John Brinkman's blog

Good luck,


Level 1
Level 1


Thanks for your help.

I believe you have answered my question but my PC is giving me issues right now. Not sure how I tag this as "answered"