XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old August 12th, 2002, 02:12 AM
ShawnD ShawnD is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Posts: 56 ShawnD User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to ShawnD
what is XML exactly?

reading my PHP book, it did a brief overlook of XML and how to create XML using PHP.....it looked interesting but i'm sort of lost as to what XML is exactly.

the book says "XML is a new language becoming the standard for transfering data" but what does that mean exactly? is it talking about text files or big programs or something? what does XML do that other language such as Perl and PHP can't do?
__________________
PHP is fun

Reply With Quote
  #2  
Old August 12th, 2002, 04:09 AM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 8
Send a message via AIM to bricker42
Long answer
Short answer
Really short answer: it's HTML's big brother, but instead of marking up content for display, you markup content to give it meaning.

Reply With Quote
  #3  
Old August 12th, 2002, 04:59 AM
ShawnD ShawnD is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Posts: 56 ShawnD User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via ICQ to ShawnD
by saying it is meant to give meaning rather than be displayed are you saying that XML is like a data management sort of thing?

i read the short answer one and i didn't get it. the only one i think i got was this first point
Quote:
1. XML is for structuring data
Structured data includes things like spreadsheets, address books, configuration parameters, financial transactions, and technical drawings. XML is a set of rules (you may also think of them as guidelines or conventions) for designing text formats that let you structure your data. XML is not a programming language, and you don't have to be a programmer to use it or learn it. XML makes it easy for a computer to generate data, read data, and ensure that the data structure is unambiguous. XML avoids common pitfalls in language design: it is extensible, platform-independent, and it supports internationalization and localization. XML is fully Unicode-compliant.


isn't 'grenate data, read date, and ensure that the data structure is unambiguous' what PHP does with databases?

Reply With Quote
  #4  
Old August 12th, 2002, 11:16 AM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 8
Send a message via AIM to bricker42
XML is a standardized way to create your own file format. It uses a structure that's similar to HTML (both use <tags>), and it has rules about what a tag looks like, how it works, how to write attributes, etc. However, there are no specific XML tags. That part is up to you, as the developer, to decide.
Check out http://www.xml.org for some examples and information. Basically, you might write an XML file that was a <list> with a bunch of <item>s in it, and each item has a <name> and a <date> and an <author>.
You can think of an XML file like a simple database. Most of the databases that php works with use a relational model to store data, while XML is structured. Another difference of course is that you can copy an XML file and use it somewhere else.
You might have heard of XSL? That's an XML language created for transforming XML documents into other formats (HTML, text, more XML, whatever). But it is XML, it's well-formed, follows all the rules, and has tags specifically defined to do certain tasks.

Reply With Quote
  #5  
Old August 19th, 2002, 01:50 PM
AxiMaxi AxiMaxi is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2002
Posts: 9 AxiMaxi User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Lightbulb Where you can read about it

Try:

http://www.w3schools.com

and read the XML and XSL pages.

Reply With Quote
  #6  
Old August 20th, 2002, 03:12 PM
robc robc is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2001
Location: MD - USA
Posts: 55 robc User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
xml book

I would highly recommend the book:

Professional PHP4 XML


http://www.amazon.com/exec/obidos/ASIN/1861007213/qid%3D1029874304/sr%3D11-1/ref%3Dsr%5F11%5F1/102-1877817-9734553

Reply With Quote
  #7  
Old August 23rd, 2002, 10:13 AM
kehret's Avatar
kehret kehret is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2002
Location: Taos, New Mexico
Posts: 4 kehret User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to kehret
PHP 4 XML

I'd have to second the comments about the PHP 4 XML book - I just got it and so far its been great. Some of the wrox books with multiple authors are rather disjointed, but this one's tied together pretty well..

Reply With Quote
  #8  
Old September 1st, 2002, 03:23 AM
Paulblo Paulblo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2000
Location: San Jose, CA
Posts: 57 Paulblo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 13 m 14 sec
Reputation Power: 8
Tid Bit

XML was created to be a standard way to describe data so any programming language or application can use the data and have 100% control over the presentation.

In essence it is a way to seperate presentation from date.

It is almost so simple it becomes very complicated.

Keep reading.. and playing.
__________________
Thank you,

Paul B Hepworth

Questions & Answers http://www.lds.org

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > what is XML exactly?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway