Sie sind auf Seite 1von 4

Inls 102 reading notes, April 13

Since I have to present a review for XML, I have made a summary outline of the material in the assigned reading.
XML examples are from www.w3schools.com.

XML Introduction
Extensible Markup Language
like HTML, but not a replacement
XML describes data. HTML displays data.easier to expand and upgrade systems
tags are user-defined
cross-platform, software and hardware independent
will be everywhere in the future

How Can XML Be Used?


separates data from HTML
XML data is stored outside HTML.
or stored inside HTML (Data Islands)
will be main language for financial information exchange (B2B)
stores data in plain text files
software- and hardware-independent data sharing.
easier to expand and upgrade systems
stores data in databases and other files.
used to Create new Languages
WAP (Wireless Markup Language) and WML(Wireless Application Protocol).
markup Internet applications for handheld devices (mobile phones)
Hopefully all future applications will do data exchange in XML.

XML Syntax
simple and strict
all elements must have closing tag
tags are case sensitive

example:

<?xml version="1.0" encoding="ISO-8859-1"?> XML declaration not part of XML document


no closing tag
<note> root element doc is a note
<to>Tove</to> next 4 lines child elements to, from, heading, body
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note> end of root element

elements must be correctly nested


documents must have a root element
attribute values in quotes always
date=12/11/2002
spacing is preserved
a new line is always stored as LF (line feed).
comments syntax similar HTML comments.

XML Elements
documents can be extended to carry more information.
elements related - parents and children.
Element is everything from element's start tag to end tag (including tags).

example:

<book> root element - has element content because it has other


elements in it (children)

<title>My First XML</title> children, siblings or sisters (title, prod,


chapter) have same parent

<prod id="33-657" media="paper"></prod> prod empty content attributes,


but no information
(attribute named media has value
paper)
<chapter>Introduction to XML chapter - mixed content has text and
other elements
<para>What is HTML</para> para - simple content (or text content)
only text
<para>What is XML</para>
</chapter>

<chapter>XML Syntax
<para>Elements must have a closing tag</para>
<para>Elements must be properly nested</para>
</chapter>
</book>

4 types of element content:


Element content
Mixed content
Simple content
Empty content

elements can have attributes


element naming rules:
can contain:
letters, number, other characters
cannot start with:
number, punctuation character, or letters xml, XML, Xml
cannot contain:
spaces, hyphen (-), period (.), colon (:)

XML in Real Life


XMLNews specification
nitf (News Industry Text Format)

example:

<?xml version="1.0" encoding="ISO-8859-1"?>

<nitf>
<head>
<title>Colombia Earthquake</title>
</head>

<body>

<body.head>
<headline>
<hl1>143 Dead in Colombia Earthquake</hl1>
</headline>
<byline>
<bytag>By Jared Kotler, Associated Press Writer</bytag>
</byline>
<dateline>
<location>Bogota, Colombia</location>
<story.date>Monday January 25 1999 7:28 ET</story.date>
</dateline>
</body.head>

</body>

</nitf>

XML examples are from www.w3schools.com

Toms Hardware
First thing I notice is this thing is totally and advertisement for selling the parts.

Standard Components:
PC case
Motherboard
Processor
CPU cooler
RAM
Hard drive
Graphics card
CD-ROM or DVD drive
Floppy disk drive

I just purchased the card and fire-wire for video last week.

jumper - a metal bridge that connects two contacts, covered with plastic.
often used to configure the PC.

Its interesting that the computer manufacturers now prevent overclocking so that a use cannot improve the
performance without spending more money on their products.

Connecting Hard Drives And CD-ROM/DVD:


majority of hard drives and CD/DVD drives are based on the IDE (Integrated Device Electronics) standard.
cheap

SCSI (Small Computer Systems Interface) bus system offers greater flexibility - only used for workstations
and servers.

Static electricity can destroy memory chips.

Putting a PC together:

Opening the empty case;


Preparing to fit the components;
Fitting the motherboard;
Fitting the RAM, processor, and cooler;
Installing the graphics card and sound card;
Fitting the hard disk and floppy drive;
Installing the floppy and CD-ROM drives;
Connecting the ribbon cables;
Powering the drives and motherboard;
Connecting the cables for the case front panel;
Final check.

I was surprised I recognized the parts in the photo of all the components in parts 2.

Ive added memory, wireless cards, USB ports and FireWire ports to my computers. I think I could put a
PC together. Im not sure what the advantage would be unless you were constructing a PC from salvaged
parts.

Das könnte Ihnen auch gefallen