I'm using Node Red to extract data from reports generated by some medical equipment. These reports are in general XML files. And while these devices do their medical job properly, they are really bad at making reports. Meaning XML files are often faulty. While data I need to extract (process status, tempreature, user id etc.) are always there, some sections are often missing. The file is still converted by XML node to JS object but paths to values I need always change depending on what is missing.
Is it possible to extract a value that is once in msg.payload.Signature.Object.Illumination.Header.User, then in msg.payload.Illumination.Header.User and then somewhere else? Meaning it's always .User but its position inside an object is always different?