Jump to content

[SOLVED] can anybody explain to me please the real advantages to using XML? when, why use


mac007

Recommended Posts

Hello, all:

 

can anybody explain to me please the real advantages to usign XML? when, why would you use it? what specifically for?? 

I realize it's supposed to just present "organizational" structure of text, but OK?? how would it differ from just using php/database to arrange and display regular data?? 

 

thanks for your feedback!

Link to comment
Share on other sites

its more for transferring data between applications.

i have only used it in AJAX

where you send the page to the client who makes some kind of input then javascript gets a XML document from your server.

javascript can scan through a XML document and get the bits out you want.

XML is not normally used to store data. in my Java development i have sometimes used XML to store large config information but most of the time for normal sized configs i just used plain text.

 

Scott.

Link to comment
Share on other sites

XML is an excellent way to transfer information.  For example an e-commerce site may get products, updates, etc. for their store to update.  XML is an easy universal way to transfer this information.  They just give you the format and you parse it to your preference.  Another example is AJAX.  Without refreshing the page you can get server side data and display it client side.

Link to comment
Share on other sites

Thanks guys.. that was all I needed, I realized it was used in AJAX, but I had completely forgotten that one of its main purposes was to provide easier compatibility of data transfer between platforms... what Maq just said triggered a memory from way back when I went to an interview and these office-company where using xml to update their products which then would then get uploaded into InDesign for publishing laout..

 

thanks guys!

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.