You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm working on parsing TMX files and I can't figure out from the documentation if 'can contain' objects can be included multiple times or only once. For example under <imageLayer> it expressly mentions "A layer consisting of a single image" so I know there can only be one child image. Other objects are not so clear.
Prefixing or appending something to each 'can contain' object that can be included multiple times would make this much clearer.
Fox example an asterisk to mark 1 or many objects of the same type are accepted:
Can contain: <properties>, <layer>*, <objectgroup>*, <imagelayer>*, <group>*
It is also not clear at all which attributes/'can contain' objects are required as mentioned in #696 .
The text was updated successfully, but these errors were encountered:
I tried to piece the info together from the JSON docs and from the DTD file which does include this information but they were incomplete and I wasn't sure if it was just me reading the docs wrong!
All "can contain" entries have been split into "can contain at most one"
and "can contain any number". Additionally, there is now a note to
implementors at the top of the specification listing how to handle parsing
errors. (More of a reminder on how to handle XML errors in general, since
TMX is a form of XML.)
Closesmapeditor#696, mapeditor#1754
I'm working on parsing TMX files and I can't figure out from the documentation if 'can contain' objects can be included multiple times or only once. For example under
<imageLayer>
it expressly mentions "A layer consisting of a single image" so I know there can only be one child image. Other objects are not so clear.Prefixing or appending something to each 'can contain' object that can be included multiple times would make this much clearer.
Fox example an asterisk to mark 1 or many objects of the same type are accepted:
It is also not clear at all which attributes/'can contain' objects are required as mentioned in #696 .
The text was updated successfully, but these errors were encountered: