I am not sure why my Holiday scripts keep returning Null, I have attached the script and xml files.
If someone can help would be great.
I have this problem too.
Correct Answer by Brian Meade about 3 years 4 months ago
So if you read through the logic of the script, it looks for Hokiday1 in the XML file theN Holiday2 then Holiday3, etc. As soon as it find one that doesn't exist is when the loop ends. If it doesn't find any, it returns null. Since your XML file starts with Holiday2, it returns null when looking for Holiday1 and then exits the script. I would try changing your XML file to begin with Holiday1 and aee what the debugging looks like after that.