开发者

What is the earliest version of TinyXML that correctly translates character entities?

开发者 https://www.devze.com 2023-02-17 18:43 出处:网络
According to TinyXML documentation, the latest version of the software correctly translates the standard five XML character entities (&, ", ', >, <) into开发者_如何学JAVA their hum

According to TinyXML documentation, the latest version of the software correctly translates the standard five XML character entities (&, ", ', >, <) into开发者_如何学JAVA their human-readable equivalent when you call Value() on a TiXmlText object.

By contrast, this documentation also states that, "Older versions of TinyXML 'preserved' character entities, but the newer versions will translate them into characters."

I am currently using TinyXML 2.5.3, and calling Value() on a TiXmlText object preserves the character entities in the return value.

Was character entity translation only implemented as a TinyXML feature starting in version 2.6? Or should my character entities be translating properly in 2.5.3 and something else is going wrong?

Many thanks for your help!

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号