I have assign the value of a member variable as under:
myValue = (char*)malloc(strlen(inValue) * sizeof(char));
strcpy(mValue, inValue);
while assigning it the value was proper as(taking printf output):
http://www.w3.org/2001/XMLSchema
But, when i get its value after wards i get it as:
http://www.w3.org/2001/XMLSchema(!
What could be the problem for this issue
You shouldn’t cast the return type from a malloc call. And always include stdlib.h.
Hope that helps,