In: Computer Science
What is the syntax of a typical DOCTYPE declaration you would find in an XML document if its DTD is located in the same directory as the XML document itself?
Question- What is the syntax of a typical DOCTYPE declaration you would find in an XML document if its DTD is in the same directory as the XML document itself?
Ans- If DTD is located in the same directory as the XML document itself than we will use an External DTD Declaration. If the DTD is declared in an external file, the <!DOCTYPE> definition must contain a reference to the DTD file.
The DTD above is interpreted like this: