libxml2 does not parse XML Data where there is no space between tags
My XML Body is in below format and saved in file.txt
<parent><child>1</child><parent>
While using xmlParseFile() function, file.txt is passed as argument.
Here, xmlParseFile() is not able to parse this particular data.
But, when I change the data to
<parent> <child>1</child> <parent>
,
then it works perfectly.