Need help with XML...

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • dcruz

    #1

    Need help with XML...

    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,
  • Victor

    #2
    Re: Need help with XML...

    dcruz wrote:[color=blue]
    > 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?[/color]

    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.

    --
    Victor

    Comment

    Working...