It's known problem with TinyXML. NULL can be returned on rare cases of success.