XML
Moderator: General Moderators
- John Cartwright
- Site Admin
- Posts: 11470
- Joined: Tue Dec 23, 2003 2:10 am
- Location: Toronto
- Contact:
Google is your friend:
http://www.google.ca/search?hs=xja&hl=e ... arch&meta=
This is a really informative thread I found in that search that explains it very well:
http://forums.devx.com/showthread.php?t=4660
http://www.google.ca/search?hs=xja&hl=e ... arch&meta=
This is a really informative thread I found in that search that explains it very well:
http://forums.devx.com/showthread.php?t=4660
Re: XML
Its definitely worth looking into, and its becoming the new standard language for "Web 2.0" (definition varies).The Ninja Space Goat wrote:What do y'all use it for? I have yet to find a use, but then again I haven't really looked into it much. I do a lot of eCommerce sites and standard info sites. Is it worth looking into?
I use it for my db schema's. Its a little larger than a standard schema file, but its much more descriptive, and far more portable. I can use the xml to draw db relationships, and much more. Its incredibly useful. Read more about adodb's xmlschema.
Re: XML
I had to use it to pass data to a Flash app. Flash sends a request to a PHP script. PHP hits the database and returns XML that Flash then uses to change what it shows the user.The Ninja Space Goat wrote:What do y'all use it for?
We've had this discussion before, too:
viewtopic.php?t=36657
viewtopic.php?t=36657
Depends on entirely what sort of apps you make. And if one is planning to make a career out of PHP programming, then I'd definately recommend learning it and using it by making practice apps.
One popular example is if an RDBMS is not used in a project, you could use XML instead of a CSV text file.
I have a few old projects that run strictly on text files so when/if I ever revamp them to modern standards, XML is something I'd definately use.
Another is 3rd party data importing and exporting. If you create an application that imports and exports data through text files, XML is a solution I'd recommend over CSV text files again.
The ability to basically create your own markup language and completely customize the values makes reading the raw data so much easier if it ever required human editing.
eg.
<clients>
<client>
<iDNo>02942</iDNo>
<name>John</name>
....
</client>
...
</clients>
beats the heck out of
02924, John, ..., ...
02925, Joe, ..., ...
02926, Bob, ..., ...
And PHP gives you the ability to basically just import the file and then have all of the tags in an array. So simplicity and scalability and clarity I think are big bonuses in XML usage.
But for a more comprehensive listing of reasonings why, I'd recommend checking out the links posted above.
One popular example is if an RDBMS is not used in a project, you could use XML instead of a CSV text file.
I have a few old projects that run strictly on text files so when/if I ever revamp them to modern standards, XML is something I'd definately use.
Another is 3rd party data importing and exporting. If you create an application that imports and exports data through text files, XML is a solution I'd recommend over CSV text files again.
The ability to basically create your own markup language and completely customize the values makes reading the raw data so much easier if it ever required human editing.
eg.
<clients>
<client>
<iDNo>02942</iDNo>
<name>John</name>
....
</client>
...
</clients>
beats the heck out of
02924, John, ..., ...
02925, Joe, ..., ...
02926, Bob, ..., ...
And PHP gives you the ability to basically just import the file and then have all of the tags in an array. So simplicity and scalability and clarity I think are big bonuses in XML usage.
But for a more comprehensive listing of reasonings why, I'd recommend checking out the links posted above.
Last edited by m3mn0n on Thu Dec 01, 2005 5:19 am, edited 1 time in total.
That's a very bad example. XML is certainly not the best choice for a flat file storage system .. nor is CSV. You should work out a format that best suits the data being stored. The processing overhead for XML is hefty at best, not to mention the storage overhead.Sami wrote:One popular example is if an RDBMS is not used in a project, you could use XML instead of a CSV text file.
XML is for transfering data between computers where you don't have the ability to work out a more suitable structure. Data feeds are a typical example .. if you're feeding some data to lots of people you don't know then you need a format that defined in a way that everyone can easily use .. such as XML.
I've yet to encounter XML, and I don't even understand what it is. Normally I'd be intrigued to click those links and read more, but my brain is on overload from learining how to SSH on my freebsd box. Plus I've done so much work lately that my brain is fried. Now is one of those times where I could use a break from everything, but I know I'll never get around to it. 
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Well essentially, it's one and the same thing since RSS is a form of XML (much like XHTML is a form of XML) so adding an RSS field would count as having an XML element in the applicationGrim... wrote:I do that already, but that's different, isn't it?
(I know their XML based)
The weekend is near, my friend!scrotaye wrote:I've yet to encounter XML, and I don't even understand what it is. Normally I'd be intrigued to click those links and read more, but my brain is on overload from learining how to SSH on my freebsd box. Plus I've done so much work lately that my brain is fried. Now is one of those times where I could use a break from everything, but I know I'll never get around to it.
We shall all rejoice when Friday afternoon is upon us!