Validating xml dtd
When adding attributes, you want to add your customizations at the end of the DTD to ensure that everything they need to reference has already been defined.
You must now change the , it rejects the document because you aren’t using one of the validator’s approved DTDs.
The very best place to put them would be as the and adding the new attribute specifications at the end of the file.The solution is to use a different validator which will actually go out to the URL that you have specified and use it to check whether your document is valid or not.Because the document you’re validating is XHTML, you can use any XML parser that does validation.As you will see later, this will change when you make a custom DTD. For each attribute, you need to specify which element it goes with, what the attribute name is, what type of values it may have, and whether the attribute is optional or not.This information is specified in this model: Note: Adding new attributes to existing elements is easy; adding new elements is somewhat more difficult and beyond the scope of this article.