rapidxml: validate closing tags like libxml2 parser (no overhead measurable seen)
fix skipping of empty text nodes in rapidxml parser (matches libxml2) - closes #2253