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
(
Hi,
Thursday, July 10, 2003, 6:44:55 AM, you wrote:
MG> Tom:
MG> Thanks for the help. Using the array setup you described, I end up with the
MG> value of each "record" node being appended to a single instance of the
MG> parent node. And that single instance of the parent node is the final one
M
Hi,
Thursday, July 10, 2003, 6:44:55 AM, you wrote:
MG> Tom:
MG> Thanks for the help. Using the array setup you described, I end up with the
MG> value of each "record" node being appended to a single instance of the
MG> parent node. And that single instance of the parent node is the final one
M
5 matches
Mail list logo