We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 593013e + 104b79e commit 6bfe219Copy full SHA for 6bfe219
lib/XMLParser/XMLParser.php
@@ -18,6 +18,8 @@ class XMLParser {
18
19
private static $_defaultAttrTag = 'attr:';
20
21
+ public static $caseSensitive = false;
22
+
23
public static function encode ($data, $root = null)
24
{
25
if ($data instanceof SimpleXMLElement) {
@@ -113,6 +115,9 @@ private static function _formatName ($string)
113
115
'/ /' => '_'
114
116
];
117
$string = preg_replace(array_keys($p), array_values($p), $string);
118
+ if (self::$caseSensitive) {
119
+ return $string;
120
+ }
121
return strtolower($string);
122
}
123
0 commit comments