|
next
|
 Subject: Another EDI problem Author: Tony Lavinio Date: 10 Aug 2009 03:32 PM
|
Well, we did some research on this, and here is the definitive answer.
If the EDI element is marked as mandatory and there is an XML element
with empty content, in order to keep from causing an error, we will
pad the element with a single space.
In this case, if the NAD01 element were changed to "optional," as is
appropriate since "" is now a valid value, then the EDI serializer
will write out
<NAD>
<NAD01/>
<NAD02>
<NAD0201><!--3039: Party identifier-->39000</NAD0201>
</NAD02>
</NAD>
as
NAD++39000'
But exactly the same XML will, if NAD01 is mandatory, generate this:
NAD+ +39000'
so that the EDI is valid.
So you do have control, based on the settings in the SEF file.
|
|
|