[bugfix] work around xerces bug: already resolved entities get lost if a DTD is loaded from the grammar cache. This leads to a serious problem: an entity which was resolved at validation time may no longer be known when eXist tries to store the document. Xerces throws an exception and leaves eXist in an unclean state, since only a part of the document was stored. The result is a corruption.
[bugfix] work around xerces bug: already resolved entities get lost if a DTD is loaded from the grammar cache. This leads to a serious problem: an entity which was resolved at validation time may no longer be known when eXist tries to store the document. Xerces throws an exception and leaves eXist in an unclean state, since only a part of the document was stored. The result is a corruption.

The bug fix works around the issue by disabling validation while eXist is actually storing the document's DOM.

svn path=/branches/eXist-stable-1.2/; revision=9161

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