Hi, currently I am using Xpath to work on an XML file, and I notice that the return of Xpath can be an object or an array. This will be depended on the input XML file, and I can not control the content of the XML file. So I need to have a condition so that if the Xpath output is an object, I will handle in a way; and if the Xpath output is an array, I will handle in another way. How can I achieve that?
