August 2000
Beginner
456 pages
9h 24m
English
The XML-Data package also supports attribute type declarations, and the types are the same as those for the XML DTD package. As was the case with ElementType declarations, the attribute is defined before the element definition and then an instance is included. It's possible to use the attribute in more than one element.
Recall the first XML file that you created, which included attributes. The listing was first used in Hour 6.
1: <?xml version="1.0"?> 2: <!-- This file demonstrates the use of an attribute list to 3: qualify data. The filename is xmlhour7-5.xml --> 4: <!DOCTYPE E-MAIL [ 5: <!ELEMENT E-MAIL (TO+,FROM,CC*,BCC*,SUBJECT?,BODY?)> ... |
Read now
Unlock full access