The ProgrammersTalk Community
Forum Register Search Today's Posts Mark Forums Read
Register

Go Back   The ProgrammersTalk Community > Web Programming > XML / XSLT


Welcome to the The ProgrammersTalk Community forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.
Tags: , , , ,

Reply
 
LinkBack Thread Tools    Display Modes   
  #1 (permalink)  
Old 07-19-2007, 02:03 PM
HelloWorld's Avatar
HelloWorld HelloWorld is offline
Programming Expert
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: In front of computer...
Posts: 1,111
iTrader: (0)
HelloWorld will become famous soon enoughHelloWorld will become famous soon enoughHelloWorld will become famous soon enough
Icon13 What's XML for?

I never personally created a web page by using XML. However, I see it used pretty often for RSS Feeds ??? Also, I saw it's being used to create some Gadgets from Google and Windows Vista, but what do you guys usually use XML for?

__________________
PHP Code:
System.out.println("Hello World!"); 

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote
  #2 (permalink)  
Old 07-19-2007, 02:11 PM
Lee's Avatar
Lee Lee is offline
PT Staff*
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: Blackpool, UK
Posts: 616
iTrader: (0)
Lee will become famous soon enoughLee will become famous soon enoughLee will become famous soon enoughLee will become famous soon enough
There are many uses for it that i could come up with and i am sure you could too, i once created an application in good old VB6, i used XML for different languages, the user could select a language and it would load all the text into the correct place

I had made it:
English
Spanish
French
German
Russian
Portuguese

and some others
Reply With Quote
  #3 (permalink)  
Old 07-19-2007, 02:14 PM
HelloWorld's Avatar
HelloWorld HelloWorld is offline
Programming Expert
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: In front of computer...
Posts: 1,111
iTrader: (0)
HelloWorld will become famous soon enoughHelloWorld will become famous soon enoughHelloWorld will become famous soon enough
How do you integrate that to your website though?
I've been wondering about this for a long time, how do you actually uses information from the XML and then update your site using these informations? Because isn't XML just going to look like a trees of data folder with our defined tag...?

__________________
PHP Code:
System.out.println("Hello World!"); 

Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote
  #4 (permalink)  
Old 07-19-2007, 02:18 PM
Lee's Avatar
Lee Lee is offline
PT Staff*
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: Blackpool, UK
Posts: 616
iTrader: (0)
Lee will become famous soon enoughLee will become famous soon enoughLee will become famous soon enoughLee will become famous soon enough
You parse the information in the XML file, that tree look is more of a map for what ever information your programming language imports, you may have seen in forums like phpBB that they have XML language files, if the language selected is English then it loads the English XML or it will load some other language.

Edit: I know you like ASP.NET, this link below is for ASP but i would guess its the same or similar for ASP.NET, either way it will help you out i think, looks good to me .

4GuysFromRolla.com - Accessing XML Data using ASP

Edit 2: I think i found one for ASP.NET ASP.NET.4GuysFromRolla.com: XML, the DataSet, and a DataGrid

Last edited by Lee : 07-19-2007 at 02:26 PM.
Reply With Quote
  #5 (permalink)  
Old 07-19-2007, 02:25 PM
rpgfan3233 rpgfan3233 is offline
PT Staff
Awards Showcase
Quality Tutorial Quality Tutorial Quality Tutorial Quality Tutorial 
Total Awards: 4
Join Date: Jul 2007
Posts: 118
iTrader: (0)
rpgfan3233 has a spectacular aura aboutrpgfan3233 has a spectacular aura aboutrpgfan3233 has a spectacular aura aboutrpgfan3233 has a spectacular aura aboutrpgfan3233 has a spectacular aura about
XML is good for storing small amounts of data (a couple hundred records or so) in an easy-to-access format. Also, it is fairly fast as long as you don't need to store things like thousands of forum posts unless those posts are spread across multiple files (e.g. the maximum number of posts per page in a forum would be a single XML document, with a new XML document for the next set of posts of the same number). In that regard, databases still tend to be faster.

For some reason, XML is regarded as less secure than a database. Honestly, I don't think that is true if you know how to configure security settings for individual directories properly. On Windows it is a pain to do sometimes, but you can do it. That way, you could store XML documents in a folder (maybe with subfolders depending upon the amount of data). For something simple like a small game, you could use XML to store the savegame data. "SuperTux" and the "Secret Maryo Chronicles" both use XML, if I recall correctly.

I personally don't use XML much, mainly because I have yet to need it (I've had no reason to store anything in a format other than plain text for reading). XHTML is about as close to XML as I get these days. If I created RSS feeds, I'd work with XML a lot more, but I don't. I have played with it though, between MathML, XSLT and XML itself, I know a tiny bit about it.

__________________
"C makes it easy to shoot yourself in the foot; C++ makes it harder, but when you do it blows your whole leg off."
-- Bjarne Stroustrup, creator of what is now known as C++
For more quotes by Bjarne Stroustrup, check out http://www.research.att.com/~bs/bs_faq.html#really-say-that.
Digg this Post! Del.Icio.Us this Post! Technorati this Post! Furl this Post! Mister Wong this Post! Newsvine this Post! Spurl this Post! Reddit this Post! Netscape this Post!
Reply With Quote
The Following User Says Thank You to rpgfan3233 For This Useful Post:
HelloWorld (07-19-2007)
  #6 (permalink)  
Old 07-19-2007, 02:29 PM
Lee's Avatar
Lee Lee is offline
PT Staff*
Awards Showcase
Quality Tutorial 
Total Awards: 1
Join Date: Jun 2007
Location: Blackpool, UK
Posts: 616
iTrader: (0)
Lee will become famous soon enoughLee will become famous soon enoughLee will become famous soon enoughLee will become famous soon enough
Quote:
Originally Posted by rpgfan3233 View Post
XML is good for storing small amounts of data (a couple hundred records or so) in an easy-to-access format. Also, it is fairly fast as long as you don't need to store things like thousands of forum posts unless those posts are spread across multiple files (e.g. the maximum number of posts per page in a forum would be a single XML document, with a new XML document for the next set of posts of the same number). In that regard, databases still tend to be faster.

For some reason, XML is regarded as less secure than a database. Honestly, I don't think that is true if you know how to configure security settings for individual directories properly. On Windows it is a pain to do sometimes, but you can do it. That way, you could store XML documents in a folder (maybe with subfolders depending upon the amount of data). For something simple like a small game, you could use XML to store the savegame data. "SuperTux" and the "Secret Maryo Chronicles" both use XML, if I recall correctly.

I personally don't use XML much, mainly because I have yet to need it (I've had no reason to store anything in a format other than plain text for reading). XHTML is about as close to XML as I get these days. If I created RSS feeds, I'd work with XML a lot more, but I don't. I have played with it though, between MathML, XSLT and XML itself, I know a tiny bit about it.
I agree with what you have said about a couple hundred records, that's the reason why its great to store language information, RSS feed information or even music list that are behind most of the online flash players on the net.

Reason why it is great is because its much quicker than reading from a text file or some other sort of file (so i am lead to believe).
Reply With Quote
Reply


Thread Tools
Display Modes

   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
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 01:14 AM. Powered by vBulletin
Copyright © 2000 - 2007, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO © 2007 ProgrammersTalk Sedo - Buy and Sell Domain Names and Websites project info: programmerstalk.net Statistics for project programmerstalk.net etracker® web controlling instead of log file analysis


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50