Getting id

Getting id

As opposed to the usual syntax to get an id node from the current document:
var div= $("#myid");

I need to do the same for xml stored in a string returned from a function (see "data" below).  The id I'm trying to grab is "sliderdata" and I want to do something like this (I know the syntax on line 2 is wrong, but how is it done correctly?

    $.get("http://localhost/myfunction", function(data){

        var newdata = $(data).find('sliderdata');  // how do I traverse to id = "sliderdata" on string data?

I need to extract everything between the div tags for id="slider" and store it in newdata.

Thanks for helping a newbie.  I'm sure it is probably simple syntax.