Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

parse error #38

Open
chriscamacho opened this issue Apr 26, 2023 · 1 comment
Open

parse error #38

chriscamacho opened this issue Apr 26, 2023 · 1 comment

Comments

@chriscamacho
Copy link

chriscamacho commented Apr 26, 2023

xml_parser_error at 175:6 (is 
): xml_parse_tag_open::expected opening tag
xml_parser_error at 175:5: xml_parse_node::tag_open
xml_parser_error at 176:0 (is ): xml_parse_node::child
xml_parser_error at 175:5: xml_parse_document::parsing document failed
Cannot parse file

here's the file

<?xml version="1.0" encoding="UTF-8"?>
<map version="1.10" tiledversion="1.10.1" orientation="orthogonal" renderorder="right-down" width="42" height="25" tilewidth="32" tileheight="32" infinite="0" nextlayerid="3" nextobjectid="37">
 <tileset firstgid="1" source="../../ThruStar008/data/tileset.tsx"/>
 <layer id="1" name="Tile Layer 1" width="42" height="25">
  <data encoding="csv">
2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,
2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,
2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,
2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,
2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,
2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0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,0,0,0,0,0,0,0,2,
2,0,0,0,0,0,0,0,6,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,
2,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,
2,0,3,0,0,6,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,
2,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,
2,0,0,6,0,0,0,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,
2,0,0,0,0,0,4,0,0,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,4,0,0,0,0,0,0,0,0,0,2,
2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2
</data>
 </layer>
 <objectgroup id="2" name="Object Layer 1">
  <object id="1" name="switch1" type="switch" x="192" y="736" width="32" height="32">
   <properties>
    <property name="target" value="door1"/>
   </properties>
  </object>
  <object id="2" name="door1" type="door" x="160" y="544" width="32" height="32">
   <properties>
    <property name="openOffset" type="float" value="4"/>
   </properties>
  </object>
  <object id="4" name="door1" type="door" x="192" y="544" width="32" height="32">
   <properties>
    <property name="openOffset" type="float" value="3"/>
   </properties>
  </object>
  <object id="5" name="door1" type="door" x="224" y="544" width="32" height="32">
   <properties>
    <property name="openOffset" type="float" value="2"/>
   </properties>
  </object>
  <object id="6" name="door1" type="door" x="256" y="544" width="32" height="32">
   <properties>
    <property name="openOffset" type="float" value="1"/>
   </properties>
  </object>
  <object id="7" name="door1" type="door" x="128" y="544" width="32" height="32">
   <properties>
    <property name="openOffset" type="float" value="-4"/>
   </properties>
  </object>
  <object id="8" name="door1" type="door" x="96" y="544" width="32" height="32">
   <properties>
    <property name="openOffset" type="float" value="-3"/>
   </properties>
  </object>
  <object id="9" name="door1" type="door" x="64" y="544" width="32" height="32">
   <properties>
    <property name="openOffset" type="float" value="-2"/>
   </properties>
  </object>
  <object id="10" name="door1" type="door" x="32" y="544" width="32" height="32">
   <properties>
    <property name="openOffset" type="float" value="-1"/>
   </properties>
  </object>
  <object id="11" name="switch2" type="switch" x="992" y="736" width="32" height="32">
   <properties>
    <property name="target" value="door2"/>
   </properties>
  </object>
  <object id="12" name="door2" type="door" x="1056" y="480" width="32" height="32">
   <properties>
    <property name="openOffset" type="float" value="-1"/>
   </properties>
  </object>
  <object id="13" name="door2" type="door" x="1152" y="480" width="32" height="32">
   <properties>
    <property name="openOffset" type="float" value="-4"/>
   </properties>
  </object>
  <object id="14" name="door2" type="door" x="1120" y="480" width="32" height="32">
   <properties>
    <property name="openOffset" type="float" value="-3"/>
   </properties>
  </object>
  <object id="15" name="door2" type="door" x="1088" y="480" width="32" height="32">
   <properties>
    <property name="openOffset" type="float" value="-2"/>
   </properties>
  </object>
  <object id="16" name="door2" type="door" x="1184" y="480" width="32" height="32">
   <properties>
    <property name="openOffset" type="float" value="4"/>
   </properties>
  </object>
  <object id="17" name="door2" type="door" x="1248" y="480" width="32" height="32">
   <properties>
    <property name="openOffset" type="float" value="2"/>
   </properties>
  </object>
  <object id="18" name="door2" type="door" x="1280" y="480" width="32" height="32">
   <properties>
    <property name="openOffset" type="float" value="1"/>
   </properties>
  </object>
  <object id="19" name="door2" type="door" x="1216" y="480" width="32" height="32">
   <properties>
    <property name="openOffset" type="float" value="3"/>
   </properties>
  </object>
  <object id="20" name="door3" type="door" x="608" y="256" width="32" height="32">
   <properties>
    <property name="openOffset" type="float" value="-1"/>
   </properties>
  </object>
  <object id="21" name="door3" type="door" x="704" y="256" width="32" height="32">
   <properties>
    <property name="openOffset" type="float" value="-4"/>
   </properties>
  </object>
  <object id="22" name="door3" type="door" x="672" y="256" width="32" height="32">
   <properties>
    <property name="openOffset" type="float" value="-3"/>
   </properties>
  </object>
  <object id="23" name="door3" type="door" x="640" y="256" width="32" height="32">
   <properties>
    <property name="openOffset" type="float" value="-2"/>
   </properties>
  </object>
  <object id="24" name="door3" type="door" x="736" y="256" width="32" height="32">
   <properties>
    <property name="openOffset" type="float" value="4"/>
   </properties>
  </object>
  <object id="25" name="door3" type="door" x="800" y="256" width="32" height="32">
   <properties>
    <property name="openOffset" type="float" value="2"/>
   </properties>
  </object>
  <object id="26" name="door3" type="door" x="832" y="256" width="32" height="32">
   <properties>
    <property name="openOffset" type="float" value="1"/>
   </properties>
  </object>
  <object id="27" name="door3" type="door" x="768" y="256" width="32" height="32">
   <properties>
    <property name="openOffset" type="float" value="3"/>
   </properties>
  </object>
  <object id="28" name="switch3" type="switch" x="672" y="448" width="32" height="32">
   <properties>
    <property name="target" value="door3"/>
   </properties>
  </object>
  <object id="29" name="exit1" type="exit" x="1088" y="224" width="32" height="32">
   <properties>
    <property name="target" value="level2.tmx"/>
   </properties>
  </object>
 </objectgroup>
</map>
@ooxi
Copy link
Owner

ooxi commented May 26, 2023

xml.c currently does not support whitespace in attributes like name="Tile Layer 1" :(

See issue #33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants