Implemented java.xml.stream.XMLStreamReader for fast DOM traversals in embedded mode. We use a lazy implementation XMLStreamReader which is optimized to support fast scanning of the DOM, where only a few selected node properties are read at a time. Compared to a direct traversal of the DOM, a XMLStreamReader does produces much less temporary objects. The properties of a node are read on demand.
Implemented java.xml.stream.XMLStreamReader for fast DOM traversals in embedded mode. We use a lazy implementation XMLStreamReader which is optimized to support fast scanning of the DOM, where only a few selected node properties are read at a time. Compared to a direct traversal of the DOM, a XMLStreamReader does produces much less temporary objects. The properties of a node are read on demand.

Those changes are part of my efforts to speed up document updates. In particular, appending nodes to a document via XUpdate is now about 50% faster on average.

svn path=/trunk/eXist/; revision=5332

kohsah/exist,hungerburg/exist,wshager/exist,olvidalo/exist,lcahlander/exist,adamretter/exist,olvidalo/exist,eXist-db/exist,ljo/exist,jessealama/exist,adamretter/exist,adamretter/exist,wolfgangmm/exist,lcahlander/exist,wshager/exist,shabanovd/exist,olvidalo/exist,opax/exist,olvidalo/exist,lcahlander/exist,dizzzz/exist,joewiz/exist,jessealama/exist,wolfgangmm/exist,wolfgangmm/exist,MjAbuz/exist,adamretter/exist,ambs/exist,shabanovd/exist,opax/exist,zwobit/exist,patczar/exist,joewiz/exist,kohsah/exist,kohsah/exist,hungerburg/exist,jessealama/exist,kohsah/exist,MjAbuz/exist,wshager/exist,adamretter/exist,wolfgangmm/exist,ambs/exist,ambs/exist,windauer/exist,RemiKoutcherawy/exist,patczar/exist,windauer/exist,RemiKoutcherawy/exist,zwobit/exist,kohsah/exist,RemiKoutcherawy/exist,opax/exist,eXist-db/exist,hungerburg/exist,jensopetersen/exist,RemiKoutcherawy/exist,dizzzz/exist,eXist-db/exist,shabanovd/exist,dizzzz/exist,RemiKoutcherawy/exist,wolfgangmm/exist,hungerburg/exist,shabanovd/exist,joewiz/exist,adamretter/exist,eXist-db/exist,patczar/exist,dizzzz/exist,windauer/exist,jessealama/exist,patczar/exist,eXist-db/exist,olvidalo/exist,dizzzz/exist,MjAbuz/exist,ljo/exist,lcahlander/exist,zwobit/exist,ambs/exist,opax/exist,windauer/exist,patczar/exist,jensopetersen/exist,MjAbuz/exist,hungerburg/exist,kohsah/exist,ljo/exist,joewiz/exist,jessealama/exist,zwobit/exist,ljo/exist,windauer/exist,patczar/exist,jensopetersen/exist,wolfgangmm/exist,ljo/exist,eXist-db/exist,jensopetersen/exist,jessealama/exist,wshager/exist,dizzzz/exist,lcahlander/exist,zwobit/exist,joewiz/exist,shabanovd/exist,ljo/exist,RemiKoutcherawy/exist,jensopetersen/exist,shabanovd/exist,opax/exist,jensopetersen/exist,windauer/exist,wshager/exist,ambs/exist,MjAbuz/exist,MjAbuz/exist,ambs/exist,wshager/exist,lcahlander/exist,zwobit/exist,joewiz/exist