[prev in list] [next in list] [prev in thread] [next in thread]
List: xmlbeans-dev
Subject: Issue with XmlWhitespace collapse() method
From: NitinS <nitinsanil () yahoo ! com>
Date: 2011-04-12 3:56:54
Message-ID: 31375927.post () talk ! nabble ! com
[Download RAW message or body]
The XMLObjectBase.set(String) method truncates trailing space in the string
that is passed to this method.
On further research I found that this behavior is dictated by the
wscanon_rule in the XmlWhitespace object. So if the wscanon_rule() is set to
1 or 2 the trailing space will be fine, but if it is 3 the trailing space is
trimmed.
Unfortunately it looks like the get_wscanon_rule() is hard-coded to return a
3 in the XmlWhiteSpace object.
Please let me know if you have any suggestions to get around this issue.
Here is the call hierarchy for this problem -
----------------------------------------------------------
XMLObjectBase.set(String)
XMLObjectBase.set_String(String)
ws = apply_wscanon(v)
XmlWhitespace.collapse(v, get_wscanon_rule()) //get_wscanon_rule() is
hard coded to 3, with WS rule set to 3 the trailing white space will be
stripped
----------------------------------------------------------
Thanks,
Nitin
--
View this message in context: \
http://old.nabble.com/Issue-with-XmlWhitespace-collapse%28%29-method-tp31375927p31375927.html
Sent from the Xml Beans - Dev mailing list archive at Nabble.com.
---------------------------------------------------------------------
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