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 ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access