I'm just learning XML, and what I'm specifically wanting to use it for is including external files. e.g. a single contact details file, which you then include in all pages that need to have contact details in them.
I've seen several examples talking about doing something similar with book chapters, and they show what the main file should look like, but none of the examples show what the file to be included should look like, and I can't get it to work! Could someone please let me know what I need to change here? At the moment I just get a blank page when I open the main file (the "chapter" file displays fine on it's own, just not when I try to include it in the other). I'm on Windows 10 and just using IE to display it (was the only browser I had that actually "just works"!). They are in the same directory.
Here are what my 2 files currently look like (the first was just copied directly from somewhere, and I'm trying to work out what should be in the second file for the first to work, unless there's something wrong with the first one to begin with?)...
<?xml version="1.0" standalone="no"?>
<!DOCTYPE book [
<!ELEMENT book (chapter)*>
<!ELEMENT chapter ANY>
<!ENTITY BookChapter1 SYSTEM "TestChapter1.xhtml">
]><book>&BookChapter1;</book>
<?xml version="1.0" encoding="UTF-8"?>
This is Chapter 1