fixed parser, it was being naughty.
Had to create a stringbuilder to get the element value because the parser was calling the characters function few times and in some cases a part of the string was truncated