6 Flashcards
XML ? Use ?
Extensible Markup Language
- Store and transport data
- Be both human and machine readable
What HTML problems does XML resolve ?
- Same HTML code can be displayed differently in many different browsers
- Some browsers have proprietary HTML tags
- HTML does not include semantics (meaning), which is needed for e-commerce bots
Sample XML code ?
Algorithmic Game Theory Nisan et al. 9780521872829
Difference between XML and HTML ?
- XML has no pre-defined tags as HTML. We define our own tags to give meaning to their content.
- Other apps are needed to send, receive or display XML, as XML itself does nothing.
Why is XML called extensible ?
Because all XML applications continue to work smoothly if new data is added or removed.
What is an XML attribute and what is it used for ?
A feature tag, usually as a CSS id.
Used to store metadata.
For what is XML best suitable ?
- Multiple types of data in different formats
- Large processes are on client computers eg automated processing of stock market data
- Many users need different views of the data
- Mobile objects: pricebots, shotbots
What is XML parsed into and how ?
Browsers have built-in parsers which convert XML to DOM objects.
DOM ?
Document Object Model
Non-validating parser ?
Parser only checks that each tag is matched by an end-tag.
Validating parser ?
Parser which checks all rules in the DOM are respected.
COMP315
Get value of XML element ?
txt = xmlDoc.getElementsByTagName (“title”)[0].childNodes[0].nodeValue
SVG ?
Scalable Vector Graphics
CDF ?
Channel Definition Format