Extract html data using xpath ?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Extract html data using xpath ?

    i'm building an autosuggest texbex with ajax, i wanna extract data(<div>data</div>) resulting from ajax response and using it in javascript.that why i need not the HTML page but the "balise" content in javascript.
    here some code:

    //ajax
    if (xmlhttp.status == 200) {//returned by the server indicating status

    document.getElementById("x").innerHTML =(xmlhttp.responseText);
    // here i wanna read the content of html balise
    }
Working...
X