Subversion Repositories f9daq

Rev

Rev 319 | Rev 330 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 319 Rev 320
Line 14... Line 14...
14
 
14
 
15
function xmlWalker($xml_array, $parent) {
15
function xmlWalker($xml_array, $parent) {
16
         $cmd="";
16
         $cmd="";
17
         foreach($xml_array as $tag => $value) {
17
         foreach($xml_array as $tag => $value) {
18
            if ((int)$tag === $tag) {
18
            if ((int)$tag === $tag) {
19
                $tag = mb_substr($parent, 0, -1);
19
                $tag = substr($parent, 0, -1);
20
            }
20
            }
21
            $cmd = $cmd . "<" .$tag. ">";
21
            $cmd = $cmd . "<" .$tag. ">";
22
            if (is_array($value)) {
22
            if (is_array($value)) {
23
                 $cmd = $cmd . xmlWalker($value, $tag);
23
                 $cmd = $cmd . xmlWalker($value, $tag);
24
            } else {
24
            } else {