- rewrite as SAX parsing