February 19, 2002 - Reading Entity Declarations with the Browser | WebReference

February 19, 2002 - Reading Entity Declarations with the Browser

Yehuda Shiran February 19, 2002
Reading Entity Declarations with the Browser
Tips: February 2002

Yehuda Shiran, Ph.D.
Doc JavaScript

When reading an XML file with your browser, you can choose to use the DTD file only to define reference substitution, and not for defining the whole document structure. Consider the following short DTD file:

<!ENTITY preparedby "John Smith">
<!ENTITY month "April">
<!ENTITY day "Monday, ">
The file mydvd8.xml calls this DTD. Try it. You should get this output: