I am getting the following xml response from amazon after uploading a file :
#document
<PostResponse>
<Location>https://xyz.s3.amazonaws.com/0c8a8.gdf</Location>
<Bucket>xyz</Bucket>
<Key>test.pdf</Key>
<ETag>"abc"</ETag>
</PostResponse>
I have followed the answer from the following post : How to parse XML using jQuery? and tried to get the value of Key as follows :
$xml = $( $.parseXML( data ) );
$value = $xml.find("Key").text();
But I am getting empty string. How can I get the value of Key ?