Creating News Stories with XMLNews
You've learned about the main elements used within an XMLNews-Story document. Although you've seen some examples of how each of these elements is used, it would help to see them all used together within a single document. You can use varying degrees of markup in an XMLNews-Story document, depending on how much metainformation you want to provide.
With this in mind, I want to give a few examples of coding the same news story with different levels of markup. Listing 31.2 contains a complete XMLNews-Story document with a minimal amount of markup.
Listing 31.2. An XMLNews-Story Document Coded with Minimal Markup
<?xml version="1.0"?> <nitf> <head> <title>Nerd Author Strikes XML Gold</title> </head> <body> <body.head> ... |
Get XML Unleashed now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.