Steps to Reproduce:
Parse any xml doc with xmlns default namespace, e. g.
{{#get_web_data:url=https://pubchem.ncbi.nlm.nih.gov/rest/pug_view/data/compound/3028194/XML?heading=GHS+Classification|format=xml|use xpath|data=res=/Record/RecordType}} res: {{#for_external_table:{{{res}}} }}
Actual Results:
Results are always empty, example:
res:
Expected Results:
Non-empty results, example:
res: CID
As a workaround, xmlns could be replaced with ns in the xml string in EDParserXMLwithXPath.php (see patch):
$text = str_replace('xmlns=', 'ns=', $text);
(see also comments on https://www.php.net/manual/de/simplexmlelement.xpath.php)