|
Rank: Member
Joined: 3/10/2016 Posts: 10 Location: Germany
|
Hello together,
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 <TeleCommunication/> How can I disable this? Have anyone an idea?
Thanks and kind regards Oli-87
oli-87 attached the following image(s):
|
|
Rank: Advanced Member
Joined: 6/16/2006 Posts: 487 Location: AT
|
If you don't want the parent element to show up, you need to connect your filter to that parent element. And since filtering something by its own existence is pointless, you can also get rid of the filter. The existence of an input will trigger the generation of the connected output anyway.
|
|
Rank: Member
Joined: 12/16/2010 Posts: 19
|
If you change schema with adding minOccurs="0"
it could help!
Something like : <xs:element name="S1" minOccurs="0" maxOccurs="1"> <xs:complexType mixed="false"> <xs:complexContent> . . . . . . . . . . . . . . . . </xs:complexContent> </xs:complexType> </xs:element>
|
|
Rank: Member
Joined: 3/10/2016 Posts: 10 Location: Germany
|
Thanks a lot.
The solution
Quote:If you don't want the parent element to show up, you need to connect your filter to that parent element. And since filtering something by its own existence is pointless, you can also get rid of the filter. The existence of an input will trigger the generation of the connected output anyway.
helped perfectly.
Kind regards Oliver
|
|
guest |