[prev in list] [next in list] [prev in thread] [next in thread]
List: xmlbeans-dev
Subject: [jira] [Updated] (XMLBEANS-485) Whitespace is not stripped if text starts on byte 90112 or higher
From: "johan jarkovic (JIRA)" <xmlbeans-dev () xml ! apache ! org>
Date: 2012-07-12 17:54:34
Message-ID: 393215185.42894.1342115674738.JavaMail.jiratomcat () issues-vm
[Download RAW message or body]
[ https://issues.apache.org/jira/browse/XMLBEANS-485?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]
johan jarkovic updated XMLBEANS-485:
------------------------------------
Attachment: XmlBeansBugReprod-485.zip
This is a demo app which reproduces the whitespace bug.
It uses xmlText() which prints the document, with the whitespace in the specific \
index to still be there. If you add one,two,three spaces in front of the MYWRONGDATA \
word of the note.xml you will see that they are not trimmed.
> Whitespace is not stripped if text starts on byte 90112 or higher
> -----------------------------------------------------------------
>
> Key: XMLBEANS-485
> URL: https://issues.apache.org/jira/browse/XMLBEANS-485
> Project: XMLBeans
> Issue Type: Bug
> Components: Cursor
> Affects Versions: Version 2.5
> Environment: Linux amd64
> Reporter: johan jarkovic
> Priority: Critical
> Labels: 90112, strip, whitespace
> Attachments: XmlBeansBugReprod-485.zip
>
>
> (I ve used XmlOptions.setLoadStripWhitespace() option)
> If the text of an element starts on byte 90112 of the document, and there is \
> whitespace before it, then the whitespace before it is not fully trimmed. There is \
> one space left. If the text starts on 90113 there are two spaces \
> left, and so on.
> - This happens if the parent element has closed before byte 90112 followed by some \
> whitepsace and text.
> - It happens with with plain text but also with CDATA.
> - It occurs also on byte: 90112*2, 90112*3 and so on
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: \
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more \
information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic