CIS525 - Lecture#25 - December 4, 2000
XML, (tutorial on 525 page)
eXtensible Markup Language, a way of attempting to define platform independent documents
Focuses on describing data and focus on what data is
html designed to display data and to focus on how data looks
xml tags are NOT predefined, you must define your own
xml was not designed to do anything
you must have some software/program/language to actually process it
utilized in wireless applications, (is the 'mother' of wml)
xml syntax:
Tove
Janni
Reminder
Don't forget this weekend!
here 'note' and 'to' are user defined tags
first tag in xml is called 'root tag'
either single or double quotes, (nest double quotes inside single)
white space is conserved, unlike html
fully extensible, adding something to a section of previously working xml should also work
elements can have different content types
elements can have attributes
there are no rules on when to use attributes
attributes cannot contain multiple values, (child elements can)
IE5 the only browser to date that works with xml
you CAN use CSS to deal with xml, some do not think it is a good idea
some prefer to use xsl, the style sheet for xml
xml always overides browser settings, hence platform independence
use a prefix to solve naming conflicts, (i.e. , (h:table)
save as .xml
you can generate xml with asp