In my application i use xml files for refresh the data on a web page.
In a page web there is 60 data , some of them are updated but in int data i read on the web page : var="ZHTML ERROR: Expecting variable
val="ZHTML ERROR: Unknown variable
The code is:
#define USE_RABBITWEB 1 // necessary for zhtml handler in XML file
#define RWEB_POST_MAXBUFFER 5132
#define RWEB_POST_MAXVARS 170
#define HTTP_MAXBUFFER 2048
#define SSPEC_MAXNAME 48
#define HTTP_MAXSERVERS 1
#define MAX_TCP_SOCKET_BUFFERS 8
#web S_valide[@] groups=all(rw)
When i compile i have:
//Segment Origin Size
Root Code 0000:0000 0042b4 ( 17076 )
Root Data 0010:b800 003ad5 ( 15061 )
Xmem Code 000e:e000 04f448 ( 324680 )
It’s a problem of size of data?
This project work fine with the same file on a BL2665 but with the BL4S200 i have reduced the code by erasing the part that manage the GSM.( error with code out of xmem code space )
Thanck you for the answer.
It sounds like your page has unrecognized RabbitWeb/ZHTML markup. What does that part of the source .zhtml file look like? Do you have a typo in the variable name? Did you forget to export that variable to RabbitWeb via a #web statement?
I have an application where i use xml files with a bL2665 , it work fine
I need use a BL4S200 so , after problem with the memory , resolved in part , i have a problem with the data in a xml file.
My statements in the main program are :
// This value is required to enable FAT blocking mode for ZServer.lib
// Necessary for zserver.
#ximport “…\web\user\xml\alarme.xml” alarme_xml
SSPEC_MIME_FUNC(“.html”, “text/html”, shtml_handler),
SSPEC_MIME_FUNC(“.xml”, “text/xml”, zhtml_handler),
#web AL_valide_z[@] groups=all(rw)
In the xml file i have:
All the data DOM_des.s are correctly display but in some other data there is an error.
I currently have 2 ideas
The space of root data is insufficient.
There are differences between Dynamic c 9.62 and Dynamic c 10.72D.
I still have to check.
I you need explication about xml with Dynamic C 10.72D , you can make your request on this forum.
For my problem see the solution on this tag:
XML and structure of data