array2xml
array2xml copied to clipboard
setElementsAttrs function
I'm trying to utilize the setElementsAttrs and it's for the most part working as expected. However I have a variable number of Elements that need to have specific attributes that are unknown until after the array is created.
Basically what I need to do is $array2xml->setElementsAttrs(array('group' => $group_attr, 'record' => $rec_attr[$i], 'meta' => $meta_attr[$i]));
where $i would be that specific element row.
Hey. #7 might be just what you need if i understand you correctly.