persistence@glassfish.java.net

Re: [Fwd: [Issue 459] TopLink does not ignore white spaces around string values in provider name in persistence.xml]

From: Bill Shannon <bill.shannon_at_sun.com>
Date: Wed, 22 Mar 2006 09:56:35 -0800

Mike Keith wrote:
> These were defined as strings on purpose so that people could do stuff like
> place their values on separate lines. For example, it should be legal to put:
>
> <provider>
> com.acme.RidiculouslyLongPersistenceProviderClassName
> </provider>
>
> Providers should ignore whitespace in this and other elements that allow it.

I haven't looked at the persistence.xml schema but we defined an XML type
for this purpose in the other Java EE schemas. Given the appropriate type,
the XML parser should return a string with the whitespace removed.