= "2"){ // Package.xml V 2.0 printf("* Version %s (%s) - API %s (%s) - %s\n\n%s\n\n", $xml->version->release, $xml->stability->release, $xml->version->api, $xml->stability->api, $xml->date, $xml->notes); foreach($xml->changelog->release as $rel) printf("* Version %s (%s) - API %s (%s) - %s\n\n%s\n\n", $rel->version->release, $rel->stability->release, $rel->version->api, $rel->stability->api, $rel->date, $rel->notes); } else { // Package.xml V 1.0 printf("* Version %s (%s) - %s\n\n%s\n\n", $xml->release->version, $xml->release->state, $xml->release->date, $xml->release->notes); foreach($xml->changelog->release as $rel) printf("* Version %s (%s) - %s\n\n%s\n\n", $rel->version, $rel->state, $rel->date, $rel->notes); } ?>