Page 1 of 1

5.0: xml API fails

Posted: Mon Feb 11, 2013 5:52 pm
by tspivey
This code works fine on 4.61, but not 5.00:

Code: Select all

Debug PeekS(XML_ExpatVersion_())
In 5.0 and above, I get: Line 1: XML_ExpatVersion_() is not a function, array, list, map or macro.
PB 5.0 upgraded expat to 2.1.0. Looking at the source for that expat, the function still exists.

Re: 5.0: xml API fails

Posted: Mon Feb 11, 2013 6:01 pm
by ts-soft
Is not a bug!

Functionname is changed:

Code: Select all

Debug PeekS(pb_XML_ExpatVersion_(), -1, #PB_Ascii)

Re: 5.0: xml API fails

Posted: Mon Feb 11, 2013 6:02 pm
by Fred
since 5.0, all expat calls are prefixed with 'pb_' to avoid conflict.

Code: Select all

Debug PeekS(pb_XML_ExpatVersion_())