baylej / tmx

C tmx map loader
http://libtmx.rtfd.io/
BSD 2-Clause "Simplified" License
241 stars 54 forks source link

Presence of DOCTYPE throws off map loader #32

Closed bjorn closed 7 years ago

bjorn commented 7 years ago

The orthogonal-outside.tmx example shipping with Tiled has a DTD reference included as follows:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE map SYSTEM "http://mapeditor.org/dtd/1.0/map.dtd">
<map version="1.0" orientation="orthogonal" renderorder="right-down" width="45" height="31" tilewidth="16" tileheight="16" nextobjectid="37">
...

When trying to load that map with this library, it throws the following somewhat confusing error:

xml parser: missing 'orientation' attribute in the 'map' element