Click to See Complete Forum and Search --> : General Question About XML


summit310
02-12-2005, 06:47 AM
Hello:

I have a client who is set on wanting to use XML.

Can someone tell me exactly what is XML and give me some examples of how it is used? What types of applications for which one would use it?

Thank you in advance.

LiLcRaZyFuZzY
02-12-2005, 07:31 AM
u may wanna take a look at the xml spec. @ w3:
http://www.w3.org/XML/

the tree
02-12-2005, 07:37 AM
What the hell is xml? (http://alistapart.com/articles/hellxml/) Using xml (http://alistapart.com/articles/usingxml/) Wikipedia on xml (http://en.wikipedia.org/wiki/XML)

summit310
02-12-2005, 02:53 PM
Hello:

Thanks for the reply. The links that were given provided me with the same information I already read.

I'm trying to find out something specific which none of the links would answer. I hope you can.

One of the links you gave me, Using XML, has an example of a nutrition XML file.

When I first sit down to create the file, I have all the information in hand and I type it in.

Now, let's say, two days later, I need to add more nutritional information. But, I don't want to open the actual XML file to key in the info. Instead, I have a form, which I type in my information, click Submit, and the information gets written into the file along with the appropriate tags. Is that possible?

With a database, no problem. Use INSERT and the new information is added to the table with all the others.

With XML, I don't know the equivalent function that would allow me to accomplish what I just described with a database.

Any ideas?

Thank you for your time.

the tree
02-12-2005, 03:32 PM
Well the difference thier is that databases are for storing infomation, xml is for communicating it, so it's quite likely that you would generate your xml file dynamicaly using your database.

summit310
02-12-2005, 03:36 PM
Ok, so I input the data into the database and then use XML to show the data.

Am I on the right track?

the tree
02-12-2005, 03:58 PM
Yup :)

summit310
02-12-2005, 04:06 PM
Finally, I found someone who could tell me the deal about XML. I've searched and searched and couldn't find anything to give me the info you just did.

Thank you very much. I see the light.:)