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.

check for empty element Options · View
lai43235
Posted: Wednesday, November 11, 2009 7:52:40 PM
Rank: Member

Joined: 8/26/2008
Posts: 16
Location: OH
I need to check for an empty element in the input: if it is empty, ignore else do the mapping.

if the input is: <list></list>, no output
if the input is: <list><a/><b/><c/></list>, do the mapping.

If there is any way to check for empty element in MapForce
Rocco
Posted: Friday, November 13, 2009 12:57:04 PM
Rank: Advanced Member

Joined: 5/16/2009
Posts: 82
Hi,

I suppose 'a', 'b' and 'c' are optional in your schema. So, what's about using an 'exist' function and a filter component? You could connect the result of 'exist' to the 'bool' input and 'List' to the 'node/row' input.

N.B. Of course your case could be different, if so you should post your mfd file as well as the related input files.


Rocco attached the following image(s):
EmptyCheck.JPG

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.