Introducing a second HL library?

Re: Introducing a second HL library?
XML can be more compact if you use "attributes". To follow your example for a quad:
<quad color="4" normal="xn,yn,zn" v1="x1,y1,z1" v2="x2,y2,z2" v3="x3,y3,z3" v4="x4,y4,z4" />

You can omit attributes, or use combination, if document definition permits it:
<!-- a quad without normal and custom color with alpha -->
<quad argbcolor="c080ff80" v1="x1,y1,z1" v2="x2,y2,z2" v3="x3,y3,z3" v4="x4,y4,z4" />

It is valid XML and it isn't too "verbose".
Consider that you can automate transformation using stylesheet (XSL) and syntax checking using tools like XMLlint (verify an XML file against its XSD)

BTW, any format can be accettable, if permits easy syntax checking and well-supported parsing in many programming languages.

« Next Oldest | Next Newest »

Messages In This Thread
Re: Introducing a second library? - by Nicola - 2015-02-23, 16:19
Sergio Reano passed away - by Steffen - 2014-11-14, 23:10
Re: Introducing a second HL library? - by Mario Pascucci - 2014-11-15, 0:17

Forum Jump:

Users browsing this thread: 1 Guest(s)