4834_lecture_20_ho-1

4834_lecture_20_ho-1 - EEL 4834: Lecture 20 EEL 4834:...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: EEL 4834: Lecture 20 EEL 4834: Lecture 20 XML Serialization Professor O. Boykin University of Florida, Department of Electrical and Computer Engineering October 15, 2009 EEL 4834: Lecture 20 Outline 1 Structured Data 2 XML EEL 4834: Lecture 20 Structured Data Structured Data So far weve only discussed serializing arrays (or lists) of numbers. When building computer programs one almost always uses structured data to represent objects in the system. For instance, a Point may have several coordinates, x, y, and z for instance. A Line might be defined with two Points. How can we represent structured data? XML is a format which is very commonly used to represent structured data. EEL 4834: Lecture 20 XML Introduction to XML Heres what XML looks like: <Point> <coordinate dir="x">2.3</coordinate> <coordinate dir="y">5.6</coordinate> </Point> XML is simple: tags: these are the nested structures that look like < x > (start) and < / x > (end). attributes: inside the start of a tag there can be a list of key-value pairs: < mytag you=all every=body > example < / mytag > . text elements can live inside some tag, such as 2.3 and 5.6 above. EEL 4834: Lecture 20 XML <Point> <coordinate dir="x">2.3</coordinate> <coordinate dir="y">5.6</coordinate> </Point> XML may be thought of as a tree: tags are nodes, and they have children: attributes, text and other tags....
View Full Document

Page1 / 8

4834_lecture_20_ho-1 - EEL 4834: Lecture 20 EEL 4834:...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online