i have some xml that I am trying to parse with php with the following code:
$data = simplexml_load_file($file_path)
foreach ($data as $obj):
//get author, date, etc
...
// get the paths
foreach ($obj->paths as $current):
$kind = $current['kind'];
$action = $current['action'];
$path = $current->path;
but I cannot get the kind and action attributes for some reason... the path will work, but not the attributes
the xml looks like this:
<log>
<logentry
revision="xxxx">
<author>xyz</author>
<date>my date</date>
<paths>
<path
kind="file"
action="M">/myPath/woohoo</path>
<path.... *more paths*
....more logentries
Thanks