Mam plik xml o następującej zawartości :
<?xml version="1.0" encoding="UTF-8"?> <root> <priceMode>N</priceMode> <attributes/> <guid>35b7efa4-9a81-4998-bcfe-7e5f7e42fbbb</guid> <currency>PLN</currency> <priceTypeId>9</priceTypeId> <documentSeries>IZAM</documentSeries> <sourceDocument>IZAM/4545/2020 B</sourceDocument> <contractorId>7612</contractorId> <deliveryAddressType>896</deliveryAddressType> <deliveryAddressId>30566</deliveryAddressId> <payerId>7612</payerId> <warehouse>7</warehouse> <operator>85</operator> <documentDate>2020-06-24 03:20:15.000</documentDate> <reservation>0</reservation> <reservationStartDate>2020-06-24 03:20:15.000</reservationStartDate> <expirationDate>2020-06-24 03:20:15.000</expirationDate> <realizationDate>2020-06-24 03:20:15.000</realizationDate> <confirmDocument>0</confirmDocument> <description>IZAM/4545/2020 </description> <paymentType>20</paymentType> <paymentDays>21</paymentDays> <context>68</context> <akwNumber null="true"/> <targetContractorId null="true"/> <positions> </positions> </root>
Za pomocą
Przypisuje jego zawartość do zmiennej $plik
W jaki sposób wyświetlić np wartość między znacznikami <guid>..........</guid> ?
Próbowałem to zrobić za pomocą preg_match ale niestety mi nie wychodzi
