- var_dump: documentation ( source)
- simplexml_load_string: documentation ( source)
<?php
$xml = <<<XML
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<globkurier>
<login>sklep@soro.pl</login>
<password>a88349c3721b83cb1514cb4d088ca9c6</password>
<apikey>FmBpD-UFgNB-qbh29-i2x69</apikey>
<order_method>SAVE</order_method>
<order_source>API</order_source>
<orders><order>
<reference>7144</reference>
<sent_date>2015-12-29</sent_date>
<base_service>S3003</base_service><additional_services><additional_service>A3003</additional_service><additional_service>A3009<$
<cod_account></cod_account>
<insurance_amount>1000.00</insurance_amount>
<declared_value>0.00</declared_value>
<payment_type>D</payment_type>
<content>Artyku�^�y dla noworodka</content>
<weight>4.00</weight>
<length>50</length>
<width>30</width>
<height>25</height>
<number_of_parcels>1</number_of_parcels>
<comments></comments>
<discount_code></discount_code>
<sender>
<name>SORO</name>
<street>Ul. Rynek</street>
<house_number>1</house_number>
<apartment_number>7</apartment_number>
<postal_code>58-370</postal_code>
<city>Boguszów-Gorce</city>
<country>PL</country>
<contact_person>Pawe�^� Marciniak</contact_person>
<phone>517543006</phone>
<email>sklep@soro.pl</email>
</sender>
<receiver>
<name>Renata Gryniewicz-Struk </name>
<street>Mieszcza�^�ska</street>
<house_number>62</house_number>
<apartment_number></apartment_number>
<postal_code>21-500</postal_code>
<city>Bia�^�a-Podlaska</city>
<country>PL</country>
<contact_person>Renata Gryniewicz-Struk</contact_person>
<phone>513089666</phone>
<email>kaszpirka@interia.pl</email>
</receiver></order></orders></globkurier>
XML;
var_dump(simplexml_load_string($xml));