Skip to main content
added 9 characters in body
Source Link
Jamal
  • 34.9k
  • 13
  • 133
  • 237

orOr you could use the XmlXML class from below repositorythis repository, along with Xpath selectors https://github.com/mekanixms/xms

, and the code would be something like:

<?php
$f = file_get_contents("timber.xml");

$xml = new Xms\Core\Xml($f);
$order_number_val = $xml("//order-number")->text();
$xml("//shipping-address")->children("*[last()]")->to($shipping_address);
...

or you could use the Xml class from below repository, along with Xpath selectors https://github.com/mekanixms/xms

and the code would be something like:

<?php
$f = file_get_contents("timber.xml");

$xml = new Xms\Core\Xml($f);
$order_number_val = $xml("//order-number")->text();
$xml("//shipping-address")->children("*[last()]")->to($shipping_address);
...

Or you could use the XML class from this repository, along with Xpath selectors, and the code would be something like:

<?php
$f = file_get_contents("timber.xml");

$xml = new Xms\Core\Xml($f);
$order_number_val = $xml("//order-number")->text();
$xml("//shipping-address")->children("*[last()]")->to($shipping_address);
...
added 282 characters in body
Source Link

or you could use the Xml class from below repository, along with Xpath selectors https://github.com/mekanixms/xms

and the code would be something like:

<?php
$f = file_get_contents("timber.xml");

$xml = new Xms\Core\Xml($f);
$order_number_val = $xml("//order-number")->text();
$xml("//shipping-address")->children("*[last()]")->to($shipping_address);
...

or you could use the Xml class from below repository, along with Xpath selectors https://github.com/mekanixms/xms

or you could use the Xml class from below repository, along with Xpath selectors https://github.com/mekanixms/xms

and the code would be something like:

<?php
$f = file_get_contents("timber.xml");

$xml = new Xms\Core\Xml($f);
$order_number_val = $xml("//order-number")->text();
$xml("//shipping-address")->children("*[last()]")->to($shipping_address);
...
Source Link

or you could use the Xml class from below repository, along with Xpath selectors https://github.com/mekanixms/xms