Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Query XML file and display within HTML

From: Martin Honnen <mahotrash@-----.-->
To: NULL
Date: 1/1/2005 12:45:00 PM

jomo@d... wrote:


> How do I generate a request from an HTML search form (or
> button/hyperlink) to search/query an XML data file, using CGI scripts,
> and have the results displayed within an HTML page?

A HTML form allows you to make a HTTP request (usually either a GET 
request where the arg=value data pairs are submitted as part of the URL 
or a POST request where the arg=value data pairs are submitted as the 
request body).
You CGI script (set as
   <form action="whatever.cgi" ...>
) then has (language dependent) means to read out the submitted data (e.g.
   $_GET
   $_POST
in PHP) and then all you need to know how to query an XML file in the 
server side language of your choice.
How you extract data from the XML and transform it to HTML might also 
depend on the server side environment you use, XSLT is a nice way to do 
that.

I think you are better off to ask in a group about the server side 
language you use (e.g. PHP or Perl or Java) on how to solve the task, of 
course after checking available documentation

-- 

	Martin Honnen
	http://JavaScript.FAQTs.com/


transparent
Print
Mail
Digg
delicious
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent