|
|
|
|
|
|
|
|
|
Thread tools
Search this thread
Display Modes
|
|
08-29-2004, 05:30 PM
|
#1
|
Status: Junior Member
Join date: Aug 2004
Location:
Expertise:
Software:
Posts: 39
|
XML, uses?
ok, I know what XML is and how you make it, but I don't understand it's uses. IF I was making a news script and used xml i would write the xml somehing like
Code:
<news>
<title>Title</title>
<posted>Liam</posted>
<main>MAin News Here</main>
</news>
but why write that when you could just easily write it in XHTML, I really don't grasp the use of XML so if someone could explain it to me and maybe some exampels of it's use it would help me understand why to use it and I probably would use it.
I have read some things on W3Schools but still, that doesn't help me much, I know it's so your data is outside of your markup, but still, why not write the news in a text file and include it with php or ssi or something?
Help me understand
|
|
08-30-2004, 01:34 PM
|
#2
|
Status: Member
Join date: Jul 2004
Location:
Expertise:
Software:
Posts: 445
|
I dont have time for a long reply but basically consider this forum (VBulletin)for example. There are xhtml/css coders that do not understand php and mysql. To over come those troubles xml is used as the template engine for it. Other uses is banks may use it, say an xml file is sent from one program and there program will be able to understand that information no matter what language each application was done in.
Thats all I have time for... Some one else can expand
|
|
09-03-2004, 02:20 AM
|
#3
|
Status: I love this place
Join date: Jul 2004
Location: Montreal
Expertise:
Software:
Posts: 540
|
Probably because you don't have any design or "coding" element in the xml file, only pure content and well organized.
|
|
09-03-2004, 07:37 PM
|
#4
|
Status: Junior Member
Join date: Aug 2004
Location:
Expertise:
Software:
Posts: 39
|
yes flez, extremely helpful....
thanks travis, I understand that it can be shared and read by many different applications and stuff.
but how would i use it, for a realistic purpose.
|
|
09-08-2004, 02:10 AM
|
#5
|
Status: I love this place
Join date: Jul 2004
Location: Montreal
Expertise:
Software:
Posts: 540
|
I don't know much about XML, but I know you need a medium, like PHP in which you can parse the XML...
|
|
09-13-2004, 12:48 PM
|
#6
|
Status: Member
Join date: Jul 2004
Location:
Expertise:
Software:
Posts: 445
|
I gave you a few practicle examples about it.
Personally I dont see the point in having your news in an xml file, it would be easyier to store it in a database such as mysql.
|
|
09-15-2004, 04:39 PM
|
#7
|
Status: Junior Member
Join date: Aug 2004
Location:
Expertise:
Software:
Posts: 39
|
Travis, thats exactly my thinking..I see people every now and then saying you should use XML for news and other things like that.
|
|
09-16-2004, 09:28 PM
|
#8
|
Status: I love this place
Join date: Jul 2004
Location: Montreal
Expertise:
Software:
Posts: 540
|
The thing with XML is you can access it from another website too. When you see XML Feed things, it's because you can have their feeds in your website and it updates automaticly and get's the info from the xml of the other site.
There's probably many other uses for it, but I can't think of other in the moment.
|
|
09-17-2004, 11:53 AM
|
#9
|
Status: Community Archaeologist
Join date: Jul 2004
Location: Scotland
Expertise: Software Development
Software: vim, PHP
Posts: 3,820
|
Originally Posted by Evo
ok, I know what XML is and how you make it, but I don't understand it's uses.
|
Simple. XML is a way of structuring data. Nothing more, nothing less. Its uses are first and foremost in the transfer of data, whatever that data contains is not important.
It provides a simple, convenient and importantly, extensible way of structuring data which can be used by any number of platforms in any number of environments.
Your basic idea of a news data-store is one of the often quoted simple uses of XML, but its use can (and does) scale up to being the choice of data transferred between large-scale businesses both on- and offline all of the time.
- Salathe
|
|
09-17-2004, 02:03 PM
|
#10
|
Status: Sin Binner
Join date: Jul 2004
Location: Yorkshire Coast - UK
Expertise:
Software:
Posts: 5,911
|
So you can basically call XML the "carrier" for data, taking it between platforms or taking it from being a standard structure to integrating it into a system such as php?
|
|
|
|
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|