if you have an xml element such as <name>Foo Bar</name> (note the space), isWhitespaceInElementContent will return false.However it will return true for <name><name> or <name/>so, that function can be used to determine if the element has a text content or not