Well I've made a signifigant improvement to this function, and it's now the
parsing operation is only something like 26 lines. It works flawlessly (so
far) for XML that does not have repeat element names on the same level.
Which seems to be bad form anyway, using similar element names and
distingu
Interesting -- the clone_node() function does make certain that each element
gets its own representation in the output, for any XML I tested. I guess
then my problem lies with how I'm looping through the aforementioned array
structure to get the values themselves.
Thanks,
--
Matt Grimm
Web Develo
The array structure is the one suggested on the xml_parse_into_struct page
user comments. Our example XML would parse into this:
Array
(
[ROOTELEMENT] => Array
(
[0] => Array
(
[ATTRIBUTES] => Array
(
3 matches
Mail list logo