working with nxhtml-mode in emacs, I get problems since a few weeks. While working emacs pauses unexpectingly until showing a message in the mode line \"!MEM FULL!\"; obviously
I got the same problem with emacs 23.3. Recently I switched to a version 24.1 hoping the problem will dissapear. Hélas.
So I switched to the sgml-mode
(add-to-list 'auto-mode-alist (cons (concat "\\." (regexp-opt '("xml" "xsd" "xslt" "xsl" "html" "htm" "wsdl" "xml.template" "xhtml" "jsp") t) "\\'") 'sgml-mode))
(add-hook 'sgml-mode-hook
'(lambda ()
(sgml-electric-tag-pair-mode)))
Actuall, you can disable the xml validation:
(setq rng-nxml-auto-validate-flag nil)
I did it after your questions and comments and I don't have problems since.