IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

Remove Empty Tag in XML Transformation Options · View
oli-87
Posted: Thursday, March 10, 2016 8:15:19 AM
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):
assign.JPG
function.JPG
result.JPG

that
Posted: Thursday, March 10, 2016 10:44:04 AM
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.
rmrdjenovic
Posted: Tuesday, March 22, 2016 7:24:28 AM
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>
oli-87
Posted: Tuesday, April 12, 2016 10:33:35 AM
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
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.