eWebProgrammer
Distributednetworks GofPatterns
prev prev prev prev
Course navigation
Lesson 9 Declarations within the XML file
Objective Embed declarations within the XML file.
For a very simple document, you can embed the DTD information directly within the XML document:
over out
embedded-files
embedded-files Out
XML declarations
This example shows a document type declaration statement, indicated by <!DOCTYPE>. Following DOCTYPE is the root element or the containing element for the XML document, which is greeting.
The element greeting is also the only element within the document, and it contains character data.
The next lesson discusses how to create a DTD from an existing set of tags.
Course navigation