I have a fix for this problem that I'll send as soon as the apache svn
server is up.

Cezar

> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, July 19, 2006 7:51 PM
> To: dev@xmlbeans.apache.org
> Subject: Re: Bug with setLoadStripWhitespace ? Or expected behaviour?
> 
> To answer my own question, it looks like this is a known, open issue
with
> a suggested partial fix:
> 
> http://issues.apache.org/jira/browse/XMLBEANS-274
> 
> >
> > From: <[EMAIL PROTECTED]>
> > Date: 2006/07/19 Wed AM 10:44:10 EST
> > To: <dev@xmlbeans.apache.org>
> > Subject: Bug with setLoadStripWhitespace ? Or expected behaviour?
> >
> > In addition to stripping insignificant white space between element
close
> and open tags, the
> setLoadStripWhitespace option will strip a space following an entity
> reference.
> >
> > So something saved as "Proctor & Gamble" is read as "Proctor
&Gamble".
> >
> > This looks like a bug to me. Anyone know if this behaviour is
intended?
> >
> > Here is a snippet to illustrate the problem:
> >
> >         XmlObject test = XmlObject.Factory.parse("<company>Proctor
&amp;
> Gamble</company>");
> >         System.out.println("test = " + test);
> >         test.save(new File("test.xml"));
> >         XmlObject test2 = XmlObject.Factory.parse(new
File("test.xml"));
> >         System.out.println("test2 = " + test2);
> >         XmlOptions options = new
XmlOptions().setLoadStripWhitespace();
> >         XmlObject test3 = XmlObject.Factory.parse(new
File("test.xml"),
> options);
> >         System.out.println("test3 = " + test3);
> >
> > produces this output:
> >
> > test = <company>Proctor &amp; Gamble</company>
> > test2 = <company>Proctor &amp; Gamble</company>
> > test3 = <company>Proctor &amp;Gamble</company>
> >
> > Cheers,
> > Gord
> >
> >
> >
---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

_______________________________________________________________________
Notice:  This email message, together with any attachments, may contain
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated
entities,  that may be confidential,  proprietary,  copyrighted  and/or
legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to