Kitts wrote:
> Yes. But as i understand, the value of the leaf node may be read either with
> getDoubleValue or getFloatValue or getStringValue etc. How does one reading
> the node's value know what is the type so as to call the appropriate
> method? Unless this is an internal thing meant for the low level XML
> parser.

The library will convert for you to the requested type.  The purpose
of the XML attribute is to define the "actual" internal type.  So if
you define the type as "double" and do a setStringValue() with "foo",
you will get back zero and not the string.

Andy


_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@flightgear.org
http://mail.flightgear.org/mailman/listinfo/flightgear-devel
2f585eeea02e2c79d7b1d8c4963bae2d

Reply via email to