However, if a particular element doesn't appear (say for example <author>) in the XML, it generates an error as you'd expect.
I have control over whether the XML coming in has empty XML tags and currently the empty XML tags are causing me issues (Tables within InDesign have additional empty rows for example).
Thanks in advance,
Answered it myself and for completion, I thought I'd post the answer.
// Set up the styles to map tags to
// There can be loads of these
In my case, I thought about having an alert but I commented it out and it works as intended.