Note: LucasForums Archive Project
The content here was reconstructed by scraping the Wayback Machine in an effort to restore some of what was lost when LF went down. The LucasForums Archive Project claims no ownership over the content or assets that were archived on archive.org.

This project is meant for research purposes only.

Xml?

Page: 1 of 1
 moebius
08-19-2002, 1:56 PM
#1
I'm thinking about using XML for objects description in Lixoo (http://lixoo.sourceforge.net).
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.
 superqult
08-20-2002, 4:59 AM
#2
i like the idea of using xml, since it is very well structured.
Page: 1 of 1