Jump to content

Home

Xml?


moebius

Recommended Posts

I'm thinking about using XML for objects description in Lixoo.

For example:

 

<room "Test Room">
  <image "test_back.png" type="background" />
  <image file="test_z.png" type="z-plane" />
  <script file="test_room.lua" />
  <object name="Lamp">
     <image file="lamp.png" />
     <position x="250" y="100" />
  </object>
  ... (more stuff) ...
</room>

 

could be a definition of a room. I like XML because it's a well-defined, open standard. What do you think about using it?

 

I currently know two XML parsers: expat and libxml (from Gnome). libxml is too much bigger for Lixoo, expat could do the job. Does anyone know any other small XML parsers? Any other option for object descriptions? I know rooms and objects could be created in a programmatic way using scripts, but I want the two methods to be available in Lixoo. Suggestions are welcome.

 

Thanks in advance.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...