Advertisement
Guest User

Untitled

a guest
Dec 6th, 2018
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8" standalone="yes"?>
  2. <ns2:export xmlns:ns5="http://zakupki.gov.ru/oos/CPtypes/1" xmlns="http://zakupki.gov.ru/oos/types/1" xmlns:ns6="http://zakupki.gov.ru/oos/pprf615types/1" xmlns:ns7="http://zakupki.gov.ru/oos/EPtypes/1" xmlns:ns8="http://zakupki.gov.ru/oos/printform/1" xmlns:ns9="http://zakupki.gov.ru/oos/control99/1" xmlns:ns2="http://zakupki.gov.ru/oos/export/1" xmlns:ns3="http://zakupki.gov.ru/oos/base/1" xmlns:ns4="http://zakupki.gov.ru/oos/common/1">
  3. <ns2:fcsNotificationEF schemeVersion="8.3">
  4. <id>17761874</id>
  5. </ns2:fcsNotificationEF>
  6. </ns2:export>
  7.  
  8.  
  9. $xmlDoc = new DOMDocument();
  10. $xmlDoc->preserveWhiteSpace = false;
  11. $xmlDoc->load($filename);
  12. $xpath = new DOMXPath($xmlDoc);
  13.  
  14. $id = $xpath->query('/export/fcsNotificationEF/id')->item(0)->nodeValue;
  15. var_dump($id);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement