I'm using xml_parse_into_struct to parse an xml file.
What I want to do is to to get the tag path for each value in the xml file.
this is what i use to get the path
Code: Select all
<?php
if($item['type'] == "open" || $item['type'] == "complete")
array_push($tags, $item['tag']);
?>Code: Select all
<?php
if($item['type'] == "close")
array_pop($tags);
?>any ideas?