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

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
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: 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 Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297
_______________________________________________
dom4j-dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-dev

Reply via email to