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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

xml search

Status
Not open for further replies.

thepofo

Programmer
Jan 17, 2005
2
BE
Hi,
I have an xml file where I'd like to perform a search on.
Preferably within the same page (as the full output of the xml in xsl(t)) ... is this possible.

How do I do this (php/javascript?)

Thanks
 
I don't fully understand your question...

If you want to find a node in an XML file with javascript...

You can use the DOM object and either of 2 methods...

getElementsByTagName(tagName)
such as:
Or you can use xpath with:
selectNodes(pattern)
selectSingleNode(pattern)

See XPath examples:
You can transform the node and child nodes with:
transformNode(stylesheet)
such as: And, For example:
Visit My Site
PROGRAMMER: (n) Red-eyed, mumbling mammal capable of conversing with inanimate objects.
 
I wasn't probably clear enough...
I have an xsl fine which return the complete output of my xml file in a nice html layout...

On that page is a search form where a user can select and search inside the given results...

How do I do this, is there a way to change my xml output in xsl within the same page. Or do I have to wite a php search script behind the action of the form.

How do I write this second option...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top