Bugs item #941761, was opened at 2004-04-25 15:48
Message generated for change (Comment added) made by maartenc
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=116035&aid=941761&group_id=16035

Category: None
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
>Assigned to: Maarten Coene (maartenc)
Summary: Incorrect white space inside the data.

Initial Comment:
While setting the text into element the text has been 
successfully inserted to Element but while retreiving the 
data from the Element an extra white space is appearing 
within the data

e.g.

element.element("return-code").setText("001001");

When I print the XML to stdout then it is priitng correctly

But when I try to retrieve the details by

element.element("return-code").getText().trim();

then it is printing as '00 1001', an extra white space is 
appearing between 00 and 1.

In the normal condition it is working fine but under the 
heavy load the above error is very frequent.


----------------------------------------------------------------------

>Comment By: Maarten Coene (maartenc)
Date: 2004-06-07 16:38

Message:
Logged In: YES 
user_id=178745

This should be fixed in dom4j 1.5 beta1. Please reopen if
your problem still occurs.

----------------------------------------------------------------------

Comment By: Holger Schimanski (hschimanski)
Date: 2004-04-27 13:58

Message:
Logged In: YES 
user_id=367964

I had the same problem when dealing with huge XML files
using  getText() with element with ~>200 chars. There where
inserted extra blank lines. This happens with jdk 1.4
(Windows), but no problem with jdk 1.3 under Sun/Solaris
using jaxen and xerces.

With dom4j-1.5-beta1 this problem is no longer present with
jdk 1.4 (Win).

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=116035&aid=941761&group_id=16035


-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the one
installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
dom4j-dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-dev

Reply via email to