I m currently trying to parse a smil (xml) file.
The biggest issue I have is if the line do not contain anything else but whitespace and end of line.
I have trying:
if(line.trim()==='\n')
if(line.trim().length<='\n'.length)
n='\n';
if(line.trim()===n)
None of them worked. Is there a way to check if there s no 'real' character in a string? Or if the string contain only \t, \n and whitespace?