Trouble getting content in tag.

Trouble getting content in tag.

Hi,
I am having trouble getting some text from an element in an xml file. I need to get the value inside name and as there is multiple names the only thing thats different with this one is the key tag. How do I go about getting the name? Thanks in advance.
  1. <attributes>
    <key> creator </key>//This is the only difference
    <value xsi:type="someTextinHere">
    <itemId> someID </itemId>
    <userId> UserID </userId>
    <name> NameINeed </name>//This is the name I need
    <emailAddress> Email </emailAddress>

    //my jQuery is below
    casper.then(function getMaker(){
    this.log(this.evaluate(function(){
    return $("key:contains('creator')").next("name:contains('Mark')").first().text();
    }));
    });