View Single Post
  #7 (permalink)  
Old October 17th, 2003, 07:14 AM
joefawcett's Avatar
joefawcett joefawcett is offline
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

Code:
<ship/>
and
Code:
<ship></ship>
are equivalent in xml.
As for what your attributes code and voyage mean I have no idea...
Your DTD said the ship element has two required attributes, code and voyage.
You cannot have
Code:
<ship>Text</ship>
because then ship would not be empty (it contains a text node), nor can you have
Code:
<ship><passengers/></ship>
it contains an element node.
If you are struggling with the terminology I suggest one of the seemingly infinite number of tutorials on the web.

Joe (MVP - xml)
Reply With Quote