We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d478552 commit 70c0c93Copy full SHA for 70c0c93
1 file changed
LSS/XML2Array.php
@@ -45,7 +45,7 @@ class XML2Array {
45
46
private static $xml = null;
47
private static $encoding = 'UTF-8';
48
- private static $prefix_attributes = '@';
+ private static $prefix_attributes = '';
49
50
/**
51
* Initialize the root XML node [optional]
@@ -145,7 +145,7 @@ private static function &convert($node) {
145
if(!is_array($output)) {
146
$output = array(static::$prefix_attributes.'value' => $output);
147
}
148
- $output['@attributes'] = $a;
+ $output[static::$prefix_attributes.'attributes'] = $a;
149
150
break;
151
0 commit comments