The Basics of XML Data Islands

If you had to guess how XML code is inserted into an HTML file, you'd probably give the logical answer: "Use the XML tag." Which is correct. The XML tag is now supported, and it informs the browser that the contents are to be parsed and interpreted using the XML parser. Like most other HTML tags, the XML tag has attributes. The most important attribute is the ID, which provides for the unique naming of the code. The contents of the XML tag come from one of two sources: inline XML code or an imported XML file.

Using Inline Code in an XML Data Island

When you're creating a program and there's a block of code to be run, there are two ways to make that code part of your program. It can be in an exterior location, ...

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.