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.

Profile: christophe.k
About
User Name: christophe.k
Forum Rank: Newbie
Real Name:
Location Belgium
Occupation:
Interests:
Gender: None Specified
Statistics
Joined: Sunday, March 29, 2020
Last Visit: Wednesday, June 23, 2021 1:34:32 PM
Number of Posts: 2
[0.01% of all post / 0.00 posts per day]
Avatar
Last 10 Posts
Topic: Check empty XML node
Posted: Monday, March 30, 2020 6:36:05 AM
Never mind, found the solution.
Apparently my mapping was wrong

Instead of adding the exists value on the parent node, I added an if-else to add the specific value
Topic: Check empty XML node
Posted: Sunday, March 29, 2020 9:19:00 PM
How can I check it a node exists and is not empty?

I tried the exists function and it works, but it does not work for nodes which occur more than once.

Imagine there are 2 details, the first detail has the node BatchNumber and the second detail has not.
If I use the exists function, it will always return true. How can I check that the BatchNumber in the second details exists?

In this case BatchNumber is a string, but in the case of ExpiryDate, we are talking about a date, so stirng functions are out of the question.

Thank you in advance.

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