Need help with XML...

D

dcruz

For my amusement and at the same time attempting to learn XML, I have
a written a simple dictionary webpage. The user enters a word and and
clicks on the find button. The webpage should search the XML file and
if found populates the webpage with the definition of the word. I
have written the webpage and the XML file. But I am stuck with the
searching part. I can not figure this out. How do I get the webpage
to search the XML file and populate the webpage?

Thanks for your,
 
V

Victor

dcruz said:
For my amusement and at the same time attempting to learn XML, I have
a written a simple dictionary webpage. The user enters a word and and
clicks on the find button. The webpage should search the XML file and
if found populates the webpage with the definition of the word. I
have written the webpage and the XML file. But I am stuck with the
searching part. I can not figure this out. How do I get the webpage
to search the XML file and populate the webpage?

You can use XSLT with a <param name="query"/> in the beginning, and then
use e.g. PHPs xslt_process
(http://ch.php.net/manual/en/function.xslt-process.php) to give $query a
value. By doing so, you can use $query in the stylesheet to select the
right parts of the XML file.

HTH.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,996
Messages
2,570,238
Members
46,826
Latest member
robinsontor

Latest Threads

Top