Gabriel Pinares wrote:Additionally my english is poor.
No es problema. Kein problem. без проблем.
We speak English here, but we come from everywhere, so we're used to making sense (most of the time) from other people who are not native English speakers.
A DTD or XML schema is a document that is used as a template by an XML parser to ensure that the XML contents are valid. Usually this document is separate from the actual XML content itself so that it can be applied to many XML documents which are all of the same form without having to copy the template into the XML itself. But a DTD can be done inline like you are doing here.
I think where you went wrong was when you confused the DTD with the meta-language used to descripe a DTD. That is, you coded the square brackets, but the square brackets aren't supposed to be part of the DTD. They're meta-information that indicates that something is optional.
There are common conventions for syntax descriptions, and some documents will explain them, especially since they are only conventions and there's no actual standard for meta-information. But after a while you get a pretty good idea of how it works.