On 8/18/07, Robert Osfield <[EMAIL PROTECTED]> wrote: > > On 8/18/07, Nick Prudent <[EMAIL PROTECTED]> wrote: > > Robert, > > > > Thanks for the update. No matter how it's implemented internally, there > is > > still a need for my clients to not have to hack a command line or a > text/xml > > file. They are not programmers (they don't even use Windows's > > CommandPrompt). When VPB is up and running, I'll just update the > back-end to > > reflect that. > > > > XML is great way to save parameters in a cross-platform fashion. > > XML is O.K for saving parameters, but I would say its rather a stretch > to say its a great way... > > The ascii example I provided will be a lot more human readable than > any XML format. Writing serialization code in .osg format is not too > difficult write, and in the case of future VPB work you won't actually > need to write anything to do the serialization and the loading and > saving will all be done for you via the src/osgPlugins/osgTerrain > plugin. > > Hi Robert,
In this case I disagree with you (about the human readable, not the serialization part where you are right). XML has the advantage of having a lot of really good editors (even graphical ones), adding to that the possibility to make .XSD files to validate your XML (and to help edit them, it's so cool with Visual Studio to write an XML with an XSD reference file...), it's much easier to to not make mistake writting an XML than a custom format where you can look for hours before finding a missing bracket or ";". Another advantage of XML is also that in all programming languages there are good parsers, allowing to create easily a GUI for the configuration files without having to write the parsing part. I thing that the current wave of XML based formats like COLLADA, KML, Open XML and others are a really good thing. VoilĂ , that was just my two cents on the subject. :) -- Serge Lages http://www.magrathea-engine.org
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

