A
admyc
Hello,
I am learning XML and have a question about DTDs.
I understand the line:
<?xml version="1.0"?>
in an XML document to be there to tell the program dealing with the
document that it is a document written in XML and the version of XML
it is written in is version 1.0.
When it comes to DTDs I have seen some examples where this line ('<?
xml version="1.0"?>'), is included in the DTD too and I can't
understand why it is there.
In an XML document this line is there to declare it as an XML document
but a DTD is not an XML document so I can not see why it is there.
I think that this line should not be in a DTD as I can't figure out
what possible use it is. Can anyone either confirm that this line is
erroneously included in some DTD examples or tell me what possible use
it can server in one?
Thanks
AM
I am learning XML and have a question about DTDs.
I understand the line:
<?xml version="1.0"?>
in an XML document to be there to tell the program dealing with the
document that it is a document written in XML and the version of XML
it is written in is version 1.0.
When it comes to DTDs I have seen some examples where this line ('<?
xml version="1.0"?>'), is included in the DTD too and I can't
understand why it is there.
In an XML document this line is there to declare it as an XML document
but a DTD is not an XML document so I can not see why it is there.
I think that this line should not be in a DTD as I can't figure out
what possible use it is. Can anyone either confirm that this line is
erroneously included in some DTD examples or tell me what possible use
it can server in one?
Thanks
AM