Gornova / MarteEngine

MarteEngine is a Java Engine for videogames
http://randomtower.blogspot.com
Other
74 stars 20 forks source link

resource xml validation #97

Closed demoth closed 6 years ago

demoth commented 12 years ago

not sure if it was already discussed (haven't found it in closed and opened issues) but since we use xml for loading resources (XMLResoucreLoader) it is possible to use xml validation instead of checking the root element

Gornova commented 12 years ago

Is not possible right now, maybe in the future

Stef569 commented 6 years ago

The DTD can be found here: http://gornova.github.io/MarteEngine/0.3/resourceManager.dtd

Add

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE resources SYSTEM "http://gornova.github.io/MarteEngine/0.3/resourceManager.dtd">

above the XML file to validate the content :)