XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old April 30th, 2004, 01:30 PM
digitalalias's Avatar
digitalalias digitalalias is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Georgia, USA
Posts: 164 digitalalias User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 52 m 33 sec
Reputation Power: 5
Send a message via ICQ to digitalalias Send a message via AIM to digitalalias Send a message via MSN to digitalalias Send a message via Yahoo to digitalalias
Question HTTP parsing XML

I'm trying to do a simple database where you list products and then you click to get details of a product. I got the listing down (no problem), but where do I go from there???

I can do it with ASP, PHP, MySQL, MS Access, but I am TOTALLY lost with XML. I've been through so many web sites and they all seem to be "What is XML" crap, but none of them show you how to build a dynamic site with your XML data.
__________________
Marc F.

"Let the blind lead the blind... it's more fun to watch."

Reply With Quote
  #2  
Old May 7th, 2004, 09:29 AM
wendra wendra is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Location: Germany
Posts: 14 wendra User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
What do you mean by dynamic? I know that you can call XML files from HTML, and ofcourse do something with the data. Is this what you want?

Reply With Quote
  #3  
Old May 7th, 2004, 09:52 AM
digitalalias's Avatar
digitalalias digitalalias is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Georgia, USA
Posts: 164 digitalalias User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 52 m 33 sec
Reputation Power: 5
Send a message via ICQ to digitalalias Send a message via AIM to digitalalias Send a message via MSN to digitalalias Send a message via Yahoo to digitalalias
I would like to create a small products database (right now 6 items). And basically the first page will list all the items and the second page will give you details on 1 specific item.

So totally I want to only create two html pages and have them dynamically built based on what the user clicked.

I know how to do this with PHP and MySQL, but I'm very new to XML and I haven't figured out how to retrieve data from the address bar.

Example with PHP:
page 1's link
href="mysite.com/products.php?id=39283"

page 2 php code
$prod_id = $_GET['id'];
mysql_query("SELECT * FROM products WHERE id=$prod_id");

... from there my details page is built based on what the user picked.

Reply With Quote
  #4  
Old May 7th, 2004, 10:11 AM
wendra wendra is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Location: Germany
Posts: 14 wendra User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Maybe XML Data Island is what you need. XML Data ISland will let you load XML files via HTML. Here, have a look at:
http://forums.devshed.com/t139758/s.html

Did it help?

Last edited by wendra : May 11th, 2004 at 05:10 AM.

Reply With Quote
  #5  
Old May 7th, 2004, 10:36 AM
digitalalias's Avatar
digitalalias digitalalias is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Georgia, USA
Posts: 164 digitalalias User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 11 h 52 m 33 sec
Reputation Power: 5
Send a message via ICQ to digitalalias Send a message via AIM to digitalalias Send a message via MSN to digitalalias Send a message via Yahoo to digitalalias
I do know how to do a data island. I can successful display the data on the first page. The challenge is sending and recieving data to another page.

Reply With Quote
  #6  
Old May 7th, 2004, 12:31 PM
jlk's Avatar
jlk jlk is offline
Perl Jedi
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2004
Location: New Hampshire
Posts: 109 jlk User rank is Sergeant (500 - 2000 Reputation Level)jlk User rank is Sergeant (500 - 2000 Reputation Level)jlk User rank is Sergeant (500 - 2000 Reputation Level)jlk User rank is Sergeant (500 - 2000 Reputation Level)jlk User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 11 h 24 sec
Reputation Power: 15
I have been reading your posts and I think there may be some confusion. XML is a markup language used for data. It really doesn't transmit/receive and it isn't a scripting language like PHP. An XML file contains all of your data with your own tags. You could then create an XSL sheet to define/describe your tags.

If you are looking for something to act upon a selection, you would need something like PGP or Javascript. I don't think XML is what you want for that.

Regards,

#jlk

Reply With Quote
  #7  
Old May 19th, 2004, 07:32 AM
Mattizme Mattizme is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2004
Posts: 1 Mattizme User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I think I know what you're looking for.

What I think you mean is the ability to say 'read more' on a product and that will pass something along the lines of product.html?productid=1 and that will pull out just the product from the data that is product ID 1.

There's something about XQuery that will do this for you, or at least let you pull out data based on a statement - it's like the SQL of XML. (Though I think that's possible too...)

Anyways, there's two main problems with using XQueries: 1) I don't know where you actually put the XQuery data (in an XML doc, in HTML, in its own tag, not a clue) and 2) I don't know how you transfer the data from that lil' tag up top into your XQuery data.

Happy hunting.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > HTTP parsing XML


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT