I came across this XPath in one of my tutorial codes:
count($recprv//*[local-name()='provider_email' or local-name()='provider_fax'
or local-name()='provider_phone' or local-name()='provider_phone_ext' ])
Now itโs difficult for me to understand what this means, I personally think that he says: "in the xpr recprv file, count the number of any elements that either contain provider_email or contain provider_fax or contain provider_phone or contain provider_phone_ext.
So it will basically go through the xml file recprc and count all the records? A bit confused. Moreover, I would like to know what is EXACTLY counted in the count function. Thanks so much for helping me here!
source
share