how do you pass sodipodi as an attribute with xml_file_open in php?

els1

New Member
what my program effectively is attempting to do is grab data from an xml file (that used to be an svg file). and with this grab the relevant information from the xml tags as attributes and values. I have my php set like this\[code\]foreach($xml_file_open->g->path[0]->attributes() as $attribute => $value){echo $attribute => $value}\[/code\]and the output for the xml_file_open attributes request is \[code\]style="fill:#ff0000;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"id="path2987"d="m 631.42859,603.79077 a 212.85715,162.85715 0 1 1-425.7143,0 212.85715,162.85715 0 1 1 425.7143,0 z" \[/code\](3 lines with style and d being intentionally split for readability)whereas instead of getting those 3 lines of data I am attempting to get everything within this tag \[code\]<path sodipodi:type="arc" style="fill:#ff0000;fill-rule:evenodd;stroke:#000000;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" id="path2987" sodipodi:cx="418.57144" sodipodi:cy="603.79077" sodipodi:rx="212.85715" sodipodi:ry="162.85715" d="m 631.42859,603.79077 a 212.85715,162.85715 0 1 1 -425.7143,0 212.85715,162.85715 0 1 1 425.7143,0 z" />\[/code\]it seems to be the sodipodi: that it won't read as an attribute, how would I get it to read sodipodi:cx/cy etc as an attribute?
 
Back
Top