You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@chemistry.apache.org by fm...@apache.org on 2013/07/04 17:40:53 UTC
svn commit: r1499792 -
/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/XMLUtils.java
Author: fmui
Date: Thu Jul 4 15:40:53 2013
New Revision: 1499792
URL: http://svn.apache.org/r1499792
Log:
CMIS-686: added support for CDATA
Modified:
chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/XMLUtils.java
Modified: chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/XMLUtils.java
URL: http://svn.apache.org/viewvc/chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/XMLUtils.java?rev=1499792&r1=1499791&r2=1499792&view=diff
==============================================================================
--- chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/XMLUtils.java (original)
+++ chemistry/opencmis/trunk/chemistry-opencmis-commons/chemistry-opencmis-commons-impl/src/main/java/org/apache/chemistry/opencmis/commons/impl/XMLUtils.java Thu Jul 4 15:40:53 2013
@@ -266,7 +266,7 @@ public class XMLUtils {
int event = parser.getEventType();
if (event == XMLStreamReader.END_ELEMENT) {
break;
- } else if (event == XMLStreamReader.CHARACTERS) {
+ } else if (event == XMLStreamReader.CHARACTERS || event == XMLStreamReader.CDATA) {
int len = parser.getTextLength();
if (len > 0) {
if (sb.length() + len > maxLength) {