Added support for atomic tags; ignore tag attributes; interpret whitespace.