XML DTD Validate. Difference in Eclipse and other editors



I have XML with inline DTD



<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE why [
<!ELEMENT why (animal,weight,age) >
]>
<why>
<animal>giraffe</animal>
<weight>1192</weight>
<age>26</age>
</why>


Eclipse completes validation with no errors or warnings. But other editors find errors of course. I'm agree with other editors))


Why does Eclipse work this way? Autocomplete? I wonder.


Thanks.


No comments:

Post a Comment