Hi Robert,

Your reading of the code is correct... the code will fail every time,
something I didn't catch as I haven't directly used this convenience
function in the p3d plugin or elsewhere.

Re-ordering the code so the input.readAllDataIntoBuffer() is done
before the if (!input) looks it would be appropriate.  I've made this
change and checked it in, could you test it?

Seems appropriate yes, as long as readAllDataIntoBuffer() handles the case where the file was not opened correctly (which it does).

This seems to work fine.

And what about my other question:

Once I do this in my code (awaiting a good fix to readXmlFile() ), I get
errors "end tag is not matched correctly" for items like:

<item someattribute="somevalue" />

This is valid XML syntax, but is it not supported by the XmlParser? I could
add support for it, but it seems weird that it's not supported...

I'm looking into this, will probably post a change soon, but it really seems weird to me that this kind of tag is not supported... It's basic XML syntax.

J-S
--
______________________________________________________
Jean-Sebastien Guay    [email protected]
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to