Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xml using xml to filter results

Status
Not open for further replies.

Rich75

Technical User
Jun 13, 2003
22
0
0
GB
HI i have a function that filters my xml data for selectsinglenode but i need to return all of the items.

i have found the selectNodes option but i am unsure how to use it could you please help my function is below

thanks

function filterUsingDOM()
{
var qs = "'";
Counties.XMLDocument.documentElement = Counties.XMLDocument.selectSingleNode("//State[@name="+ qs + Description.value.toUpperCase() + qs + "]");
Counties.XMLDocument.loadXML(Counties.XMLDocument.xml);
table1.dataSrc = "#Counties";
tblHeader.innerHTML = "<b>filtered</b>";
btnDOM.disabled=true;
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top