not sure which parts you are looking for. Assuming that you already know how to parse the XML you have you can fetch the URL by id (if it's eZ publish URL's you have) like this:
$href = eZURL::url( $linkID );
Then you can just print the href and the text to make up the URL.
This is what I need. Only problem is the I get the error <i>Undefined class name 'ezurl' </i> when I try to use it. I guess it has something to do with initiating.. a topic I don't know to much about..