View Single Post
 
Old April 5th, 2013, 07:04 AM
samjudson's Avatar
samjudson samjudson is offline
Friend of Wrox
Points: 8,687, Level: 40
Points: 8,687, Level: 40 Points: 8,687, Level: 40 Points: 8,687, Level: 40
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Aug 2007
Location: Newcastle, , United Kingdom.
Posts: 2,128
Thanks: 1
Thanked 189 Times in 188 Posts
Default

Difficult to answer really, but in my mind at least XML is just another representation of data.

In XML speak an XML 'document' has some restrictions, in the sense that to be a proper document is must have only a single root element and be well formed (I think). Something that isn't well formed can still be valid XML if is is considered an XML 'fragment'.

A valid XML document:
Code:
<root>
  <child>1</child>
  <child>2</child>
</root>
A valid XML Fragment, but not a valid XML document:
Code:
  <child>1</child>
  <child>2</child>
A 'document' in this sense has little to do with word documents and the like. I wouldn't use a dictionary site like dictionary.com to look up definitions for terms used in a technical way, as they are likely to be different (which I think is probably what the author of the slideshow is getting at).
__________________
/- Sam Judson : Wrox Technical Editor -/

Think before you post: What have you tried?