2

I have a little problem with my MapForce-Transformation: I want to print only the existing values in my result XML, but in my XML result file there is everytime a empty tag I check with a filter, if the result of my function is existing and if this is true, I will make the assignment. But, if the condition is false, the value is printing too.

Example:

My Mapforcedocument: My assignment

My function: function

My result:

<?xml version="1.0" encoding="UTF-8"?>
    <BusinessPartners>
        <BusinessPartner>
            <ContactPerson>
                <LegalEntity>
                    <TeleCommunication/> - I don't want to print this
                </LegalEntity>
            </ContactPerson>
        </BusinessPartner>
    </BusinessPartners>
Cœur
  • 37,241
  • 25
  • 195
  • 267
oli-87
  • 21
  • 3

1 Answers1

0

You have unnecessary functions added after the output of your user function 'test'. If the source XSD is setup correctly that function should work on its own. Check the properties of customertype in the associated XSD and insure it's nillable(true) with a min occurs of 0.

Josh A.
  • 9
  • 4