How to access element in XML using the namespace (PHP SimpleXMLElement XPath)?

Good day.
How to access elements in XML, if you use NameSpace using PHP SimpleXMLElement Xpath?
Fragment

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<ns2:export xmlns="http://example.org/oos/types/1" xmlns:ns2="http://example.org/oos/export/1" xmlns:ns3="http://example.org/oos/printform/1">
 <ns2:fcsnotificationef schemeversion="6.3">
 <id>123456789</id></ns2:fcsnotificationef></ns2:export>


How to make a Xpath query to retrieve access id?
July 2nd 19 at 14:17
1 answer
July 2nd 19 at 14:19
Solution

Find more questions by tags PHPWeb DevelopmentXML