Refactoring of some global variables and constants and function names for clarity
MAJOR: Shift from malloc() to static buffer approach for stream processing to avoid seg faults in the client (sub) mode caused by excessive benchmarking when XML messages are arriving too fast
Added extra validity checks in some XML processing parts of the code to minimize the errors from the libxml so that we try to provide valid XML input to the library