#32 Do error detection in the XML file

Avoinna
7 vuotta sitten avasi yentl · 0 kommenttia

Check the XML file for well-structuredness, for example by defining a DTD tree. Incorrectly formed elements are currently ignored, oftentimes resulting in hard to debug problems. For example, the raise <raise event="a" scooe="broad"/> will not result in any compiler error (or warning), but will behave unexpectedly, as the scope defaults to "local". Instead, this should result in an error, saying that "scooe" is an unexpected attribute.

Check the XML file for well-structuredness, for example by defining a DTD tree. Incorrectly formed elements are currently ignored, oftentimes resulting in hard to debug problems. For example, the raise `<raise event="a" scooe="broad"/>` will not result in any compiler error (or warning), but will behave unexpectedly, as the scope defaults to "local". Instead, this should result in an error, saying that "scooe" is an unexpected attribute.
Kirjaudu sisään osallistuaksesi tähän keskusteluun.
Ei merkkipaalua
Ei osoitettua
1 osallistujaa
Ladataan...
Peruuta
Tallenna
Sisältöä ei vielä ole.