Sergei wrote:
> Hello everybody,
> I need to validate an XML document with a DTD file.
See
http://xml.silmaril.ie/authors/parsers/
> The problem is that <lang> tag
Element. See
http://xml.silmaril.ie/authors/makeup/
> is empty some times, (but it should
> contain ENG,RUS,SPA...)
> which causes en error later in the program. How can I catch this with
> DTD validation ?
Is this your own DTD that you have written
or someone else's that you have been given?
> Is there a way to specify a list of posible values for a tag content ?
No. Not with a DTD. If you need to check element content you can write
an XSLT program that will do this. Or use a Schema.
> Or it only can be done for attributes ?
Correct.
///Peter
--
XML FAQ:
http://xml.silmaril.ie/