diff --git a/xero.php b/xero.php index 3afa43d..888b3e7 100644 --- a/xero.php +++ b/xero.php @@ -1267,8 +1267,7 @@ public static function toXML( $data, $rootNodeName = 'ResultSet', &$xml=null ) { } else { // add single node. - $value = htmlentities( $value ); - $xml->addChild( $key, $value ); + $xml->$key = $value; } }