Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > Query XML file and display within HTML

Reply
Thread Tools

Query XML file and display within HTML

 
 
jomo@dynamicdeveloper.co.uk
Guest
Posts: n/a
 
      01-01-2005
Hi,

I need some technical help.

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?
Thanks in advance,

Jomo

 
Reply With Quote
 
 
 
 
Martin Honnen
Guest
Posts: n/a
 
      01-01-2005


http://www.velocityreviews.com/forums/(E-Mail Removed) 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/
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to display HTML that is the data within and XML file. Cal Who ASP .Net 12 12-22-2009 12:12 PM
dealing with nested xml within nested xml within...... Ultrus Python 3 07-09-2007 09:00 PM
Query XML file and display within HTML Bart Van der Donck XML 0 01-15-2005 10:33 AM
Query XML file and display within HTML Bart Van der Donck XML 1 01-07-2005 03:51 AM
CHtmlView: How to read html text before display, change and give to display changed html code? Marek Kurowski C Programming 1 08-18-2004 06:41 PM



Advertisments