Hour 4. XML Data Islands

In general, building a project by creating and combining smaller files makes the application more flexible and maintainable. So far, you've followed that strategy as you've built your examples. However, that's not the only possible approach. This hour will explore ways to insert the XML code directly into the HTML files. When this is done, the XML code is known as an island.

It's considered good programming practice to create separate files whenever possible, so you may be wondering why you'd want to insert the XML code into the HTML files. One example is when the amount of code is very small and the overhead of creating an additional file and importing it is just too high. The second example is when the XML code has ...

Get Sams Teach Yourself XML in 24 Hours 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.