22 foreach (
$source->documentElement->childNodes as $groupNode) {
23 if ($groupNode->nodeType != XML_ELEMENT_NODE) {
26 $groupName = $groupNode->attributes->getNamedItem(
'name')->nodeValue;
28 foreach ($groupNode->childNodes as $groupAttributeNode) {
29 if ($groupAttributeNode->nodeType != XML_ELEMENT_NODE) {
32 $groupAttributeName = $groupAttributeNode->attributes->getNamedItem(
'name')->nodeValue;
33 $result[$groupName][] = $groupAttributeName;