Edwin, Thanks for your help. It does work when I do as you suggested. Of course, that depends on the fact the namespace is set as the default or the other prefix that I specify. Good catch on bug 1161719. I hope that gets fixed so I don't have to mandate use of certain namespace prefixes.
-Mark -----Original Message----- From: Edwin Dankert [mailto:[EMAIL PROTECTED] Sent: Friday, March 11, 2005 5:51 PM To: Priest, Mark Cc: dom4j-user@lists.sourceforge.net Subject: Re: [dom4j-user] DatatypeDocumentFactory and getData 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