Hi Magnus,

The XML support uses osgDB::XmlParser for writing and parsing files.
It's basic but stable, and doesn't depend on external libraries. I did
think of using namespaces, DTDs or even schemas to make the output
much more robost and easy to work with other formats, but it requires
a considerable amount of future work, without a powerful XML
reader/writer.

Maybe we could first discuss if the original XmlParser class should be
updated so much, or the XML support of serializers would use another
library, for instance, libxml2 or xerces?

The serializer IO support of OSG is still young and naive. So any
suggestions are always welcome. Thank you for your attention and
advice. :-)

Cheers,

Wang Rui

2010/3/10 Magnus Kessler <[email protected]>:
> many thanks for your effort in this area. I hope having an XML format will
> make it easier to interoperate with other XML based formats, such as Collada.
> At the very least it should be possible to write converters with standard XML
> tools.
>
> Have you thought of using XML namespaces at all? So your example above would
> become: <osg:Geode xmlns:osg="http://www.openscenegraph.org/schemas/osg";> or
> something along these lines. That way, one could even conceive mixing OSG xml
> data with say metadata from other xml namespaces. Of course, namespace
> declarations can either occur on the xml tag itself (as shown above) or once
> per file (on the xml root element).
>
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to