XML Validate

Is it necessary to validate XML file against a DTD? Justify

Questions by rajadurai24   answers by rajadurai24

Showing Answers 1 - 1 of 1 Answers

No it is not mandatory to use DTD always.

The preferred approach is to validate XML documents against XML schema definitions (XSD schemas). However, you can also validate XML against DTD's or XML-Data Reduced Schemas (XDR) schemas.
Validation introduces additional performance overhead. If there is a strong likelihood that clients will pass invalid XML to your application, you should validate and reject bad data early to minimize redundant processing effort.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions