The problem is that the Namespace class is 'prefix aware', so when
comparing 2 Namespace objects they are only the same when they have
the same URI and prefix. (Note: this is not correct behavior bug
1161719.)

The workaround for the problem would be to define the same prefix as
is used in the document, in this case using no prefix at all.

Namespace namespace = DocumentHelper.createNamespace(
               "", "http://www.3eti.com/infomatics/schemas/sm_client_schema";);
factory.loadSchema(doc, namespace);

This is not ideal but should work for now ...

Regards,
Edwin


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
dom4j-user mailing list
dom4j-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/dom4j-user

Reply via email to