separate stack from XmlReader