TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
Advertisement
Associates
Associates
techtuts Darkmindz
CSS Tutorials Tutorialsphere.com - Free Online Tutorials
Boston PHP SurfnLearn
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 02-29-2008, 10:43 AM   #1 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Location: On your Hard Drive, hiding like a Virus
Posts: 824
Thanks: 163
Orc is on a distinguished road
Default XML only good for RSS?

XML seems really only good for RSS, say you have a Book checking site, that checks newest books out.

And you have an XML file that grabs really simple syndicated feeds, that would be used to grab all the books titles, authors, etc.

Output them on the main site, this rss feed would come from a provider, which I wouldn't know of for books.

But you get my drift, though they also associate XML as a good language for Mobile Phones, and stuff like that.

Though, as XML's main purpose, the possibilities are endless, though I wonder how you would go about importing your own custom tags into HTML documents for your own use.
__________________
Wax on, Wax off
Orc is offline  
Reply With Quote
Old 02-29-2008, 05:10 PM   #2 (permalink)
The Contributor
 
DeMo's Avatar
 
Join Date: Jan 2008
Location: Brazil
Posts: 77
Thanks: 14
DeMo is on a distinguished road
Default

There are more uses to XML other than RSS.

You can use it to organize and store simple data like configuration files for your application.
Code:
<screen>
  <width>1024</width>
  <height>768</heigth>
</screen>
Let's say you're creating a CMS or a Blog system and you have a plugin architecture that users can use to enhance the functionality of the product. You can define that plugins for your system must come with a info.xml file following this structure:
Code:
<plugin>
  <name>My Plugin</name>
  <author>John Doe</author>
  <description>This plugin is useless</description>
  <version>1.0</version>
  <releasedate>01/01/2008</releasedate>
</plugin>
This would make it a lot easier for you to extract info from each installed plugin.

XML is also used as a data interchange format. Take AJAX as an example, the X in AJAX stands for "XML" because the data is commonly returned in XML format. Sometimes you need to export data from some place to import it in another, in this case you can create an exporter that writes the data in XML format and then the importer that reads data from XML files.

Another use is for Web-RPC (Remote Procedure Calls), take a look here for an example, it shows how you can query a BOINC project for user information, the data is returned as XML.

I've listed some of the common uses of XML but there's really a lot more to it than it seems.
Send a message via ICQ to DeMo Send a message via MSN to DeMo Send a message via Skype™ to DeMo
DeMo is offline  
Reply With Quote
The Following User Says Thank You to DeMo For This Useful Post:
Orc (02-29-2008)
Old 02-29-2008, 09:57 PM   #3 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Location: On your Hard Drive, hiding like a Virus
Posts: 824
Thanks: 163
Orc is on a distinguished road
Default

Quote:
Originally Posted by DeMo View Post
There are more uses to XML other than RSS.

You can use it to organize and store simple data like configuration files for your application.
Code:
<screen>
  <width>1024</width>
  <height>768</heigth>
</screen>
Let's say you're creating a CMS or a Blog system and you have a plugin architecture that users can use to enhance the functionality of the product. You can define that plugins for your system must come with a info.xml file following this structure:
Code:
<plugin>
  <name>My Plugin</name>
  <author>John Doe</author>
  <description>This plugin is useless</description>
  <version>1.0</version>
  <releasedate>01/01/2008</releasedate>
</plugin>
This would make it a lot easier for you to extract info from each installed plugin.

XML is also used as a data interchange format. Take AJAX as an example, the X in AJAX stands for "XML" because the data is commonly returned in XML format. Sometimes you need to export data from some place to import it in another, in this case you can create an exporter that writes the data in XML format and then the importer that reads data from XML files.

Another use is for Web-RPC (Remote Procedure Calls), take a look here for an example, it shows how you can query a BOINC project for user information, the data is returned as XML.

I've listed some of the common uses of XML but there's really a lot more to it than it seems.
Isn't this method used by Facebook for Developers? :D XML is awesome!
__________________
Wax on, Wax off
Orc is offline  
Reply With Quote
Old 02-29-2008, 10:14 PM   #4 (permalink)
The Contributor
 
DeMo's Avatar
 
Join Date: Jan 2008
Location: Brazil
Posts: 77
Thanks: 14
DeMo is on a distinguished road
Default

I never looked into the Facebook API but it probably uses XML too.
Google likes XML too, take a look at this example, it shows how you can use cURL and XML to automate blog postings in Blogger, in this case you send the data to them formatted in XML.
Send a message via ICQ to DeMo Send a message via MSN to DeMo Send a message via Skype™ to DeMo
DeMo is offline  
Reply With Quote
The Following User Says Thank You to DeMo For This Useful Post:
Orc (02-29-2008)
Old 03-10-2008, 12:35 PM   #5 (permalink)
The Frequenter
Advanced Programmer Top Contributor Good Samaritan 
 
Join Date: Oct 2007
Location: Manchester, UK
Posts: 469
Thanks: 26
sketchMedia is on a distinguished road
Default

XML is really a way of organising/storing data when it boils down to it, so the possibilities are up to your imagination i suppose.
__________________
sketchMedia is offline  
Reply With Quote
Old 03-13-2008, 04:52 PM   #6 (permalink)
Nor
The Addict
 
Join Date: Nov 2007
Posts: 282
Thanks: 61
Nor is on a distinguished road
Default

I use it for my forum software :)
__________________
PHP/XHTML Freelancer:
Cleanscript.com v3 - Programming starting at just $5 act now!
Nor is offline  
Reply With Quote
Old 06-02-2008, 07:46 AM   #7 (permalink)
The Wanderer
 
Join Date: Jun 2008
Posts: 16
Thanks: 0
oscargodson is on a distinguished road
Default

I am creating a full scale CMS tool by just using XML. The point of this is so that people I have a set up like this:

HTML Code:
<website>
   <webpage id="3"> <!-- For changing order on navigations -->
      <title>Title for the Page</title>
      <subhead>Sub head, but this is optional</subhead>
      <content>
         <p>This is the main content</p>
         <p>paragraphs are retained also</p>
      </content>
   </webpage>
</website>
The webpage tag gets created each time someone creates a page. I also use it for my personal site instead of a database. oscargodson.com/portfolio.xml and my web pages take all that information and parses it into an HTML document.
oscargodson is offline  
Reply With Quote
Old 06-02-2008, 04:29 PM   #8 (permalink)
The Acquainted
 
ETbyrne's Avatar
 
Join Date: Dec 2007
Location: Lapeer, MI
Posts: 180
Thanks: 34
ETbyrne is on a distinguished road
Default

That's a good idea oscargodson! But, please don't bump posts.
__________________
My Website > http://www.evanbot.com
ETbyrne is offline  
Reply With Quote
Old 06-02-2008, 05:36 PM   #9 (permalink)
The Wanderer
 
Join Date: Jun 2008
Posts: 16
Thanks: 0
oscargodson is on a distinguished road
Default

What do you mean bump? I just replied to it.
oscargodson is offline  
Reply With Quote
Old 06-02-2008, 06:43 PM   #10 (permalink)
The Acquainted
 
ETbyrne's Avatar
 
Join Date: Dec 2007
Location: Lapeer, MI
Posts: 180
Thanks: 34
ETbyrne is on a distinguished road
Default

When you reply to an older, dead, or resolved thread it is called a bump. And this thread happens to be a couple months old.
__________________
My Website > http://www.evanbot.com
ETbyrne is offline  
Reply With Quote
Old 06-05-2008, 02:21 PM   #11 (permalink)
Jim
The Addict
 
Jim's Avatar
 
Join Date: Nov 2007
Location: the Netherlands
Posts: 224
Thanks: 2
Jim is on a distinguished road
Default

I also use XML in my desktop applications, a config file is easy made in it :)

Flash also workes like a charm with XML, my portfolio uses XML to load it's pages!
Send a message via MSN to Jim Send a message via Skype™ to Jim
Jim is offline  
Reply With Quote
Old 06-05-2008, 06:25 PM   #12 (permalink)
Orc
The Prestige
 
Orc's Avatar
 
Join Date: Dec 2007
Location: On your Hard Drive, hiding like a Virus
Posts: 824
Thanks: 163
Orc is on a distinguished road
Default

Quote:
Originally Posted by oscargodson View Post
I am creating a full scale CMS tool by just using XML. The point of this is so that people I have a set up like this:

HTML Code:
<website>
   <webpage id="3"> <!-- For changing order on navigations -->
      <title>Title for the Page</title>
      <subhead>Sub head, but this is optional</subhead>
      <content>
         <p>This is the main content</p>
         <p>paragraphs are retained also</p>
      </content>
   </webpage>
</website>
The webpage tag gets created each time someone creates a page. I also use it for my personal site instead of a database. oscargodson.com/portfolio.xml and my web pages take all that information and parses it into an HTML document.
Funny, I had the same idea about an XML Forum.
__________________
Wax on, Wax off
Orc is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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. The time now is 12:52 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0