From: shiraz m. <shi...@go...> - 2009-04-22 20:46:36
|
Thanks for the reply. The purpose of preserving namespaces is to find the difference between the two xml documents. If exist stores the logical model only, then should its API provide any utility method to find the difference between the two xml documents, such as: boolean match(String expected_xml, String actual_xml)? Best regards Shiraz On Wed, Apr 22, 2009 at 9:57 PM, Wolfgang <wol...@ex...> wrote: > the difference between two docs is the increased indentation and the >> shuffiling of original doc. namespaces. >> Is there a way to avoid this behaviour? >> > > Concerning indentation, edit conf.xml and set > > preserve-whitespace-mixed-content="yes" suppress-whitespace="none" > > in the <indexer> section. In the <serializer> section, set indent="no". > Note that the serializer setting can be overwritten by an XQuery or client > interface (for example, the Java client has its own settings in > client.properties). > > Concerning namespaces: eXist stores the logical model of the document, not > its lexical representation. From this point of view, the order in which > namespace declarations appear in the same element is irrelevant and will not > be preserved by eXist. > > Wolfgang > |