Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,471
There are 1349 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     PHP and MySQL :

XML, uses?

Thread title: XML, uses?
Closed Thread  
Page 1 of 2 1 2 >
    Thread tools Search this thread Display Modes  
08-29-2004, 05:30 PM
#1
Evo is offline Evo
Status: Junior Member
Join date: Aug 2004
Location:
Expertise:
Software:
 
Posts: 39
iTrader: 0 / 0%
 

Evo is on a distinguished road

Send a message via MSN to Evo

  Old  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
Travis is offline Travis
Status: Member
Join date: Jul 2004
Location:
Expertise:
Software:
 
Posts: 445
iTrader: 0 / 0%
 

Travis is on a distinguished road

  Old

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
flez is offline flez
Status: I love this place
Join date: Jul 2004
Location: Montreal
Expertise:
Software:
 
Posts: 540
iTrader: 0 / 0%
 

flez is on a distinguished road

  Old

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
Evo is offline Evo
Status: Junior Member
Join date: Aug 2004
Location:
Expertise:
Software:
 
Posts: 39
iTrader: 0 / 0%
 

Evo is on a distinguished road

Send a message via MSN to Evo

  Old

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
flez is offline flez
Status: I love this place
Join date: Jul 2004
Location: Montreal
Expertise:
Software:
 
Posts: 540
iTrader: 0 / 0%
 

flez is on a distinguished road

  Old

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
Travis is offline Travis
Status: Member
Join date: Jul 2004
Location:
Expertise:
Software:
 
Posts: 445
iTrader: 0 / 0%
 

Travis is on a distinguished road

  Old

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
Evo is offline Evo
Status: Junior Member
Join date: Aug 2004
Location:
Expertise:
Software:
 
Posts: 39
iTrader: 0 / 0%
 

Evo is on a distinguished road

Send a message via MSN to Evo

  Old

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
flez is offline flez
Status: I love this place
Join date: Jul 2004
Location: Montreal
Expertise:
Software:
 
Posts: 540
iTrader: 0 / 0%
 

flez is on a distinguished road

  Old

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
Salathe is offline Salathe
Salathe's Avatar
Status: Community Archaeologist
Join date: Jul 2004
Location: Scotland
Expertise: Software Development
Software: vim, PHP
 
Posts: 3,820
iTrader: 25 / 100%
 

Salathe will become famous soon enough

Send a message via MSN to Salathe

  Old

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
Anthony is offline Anthony
Status: Sin Binner
Join date: Jul 2004
Location: Yorkshire Coast - UK
Expertise:
Software:
 
Posts: 5,911
iTrader: 29 / 91%
 

Anthony is on a distinguished road

Send a message via MSN to Anthony

  Old

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?

Closed Thread  
Page 1 of 2 1 2 >


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed