Hey,
I have Aspose Word template which I’m populating using XML-file. However, values in the XML might be empty or null. I have reporting engine option allowmissingmembers enabled. My problem is, that when certain nodes are completely empty in the XML-file (meaning that it has no values anywhere within incoming XML-file), my if-logic within template stops working. Currently I’m checking if the node contains values this way
<<if[additionalservices!=null || additionalservices.Any()]>>
-> Do stuff
That works if any of the additionalservices-nodes actually contain anything. However, if ALL of them are empty, then following error comes up. It seems like it behaves very differently if no values are present at all.
Tag ‘if’ is not well-formed. A conditional expression should return a Boolean value.
I have attached working and not working xml-samples to this message. Please check the additionalservices-node.
Thank you!