Dear Christian,
On Tue, Feb 5, 2013 at 5:51 PM, Christian GrĂ¼n christian.gruen@gmail.com wrote:
Hi Fabrice,
this may be due to the existence of namespaces in your document. Various optimizations will only be triggered on documents with no namespaces, or a single default namespace.
This is interesting and potentially troubling, since I'm working with data which (for no good reason I can see but I didn't design it) declares a namespace with a prefix at the top level, places the document element in this namespace, and then proceeds on with every element in the document binding to no namespace. As in:
<blah:document xmlns:blah="blah.com"> <here> <be> <contents> ...
Of course, all the elements in the document inherit the 'blah' namespace without ever using it.
I take it this will disable the optimizations to which you refer?
Can you be specific regarding what these optimizations are, or point me to documentation? Or more generally, can you offer any advice for how I should (a) detect related issues, and (b) deal with them?
Scrubbing the data on the way in may be an option. Should I be considering that?
Thanks, Wendell