- simplexml_load_string: documentation ( source)
<?php
$xml = '
<?xml version="1.0" encoding="utf-8"?>
<SMS-InsRequest>
<CLIENT user="test" pwd="demo" from="5555" />
<INSERTMSG text="Hi "John". API test1 date: 24.07.2013"></INSERTMSG>
</SMS-InsRequest>
';
$xm = simplexml_load_string($xml);