W3C home > Mailing lists > Public > www-validator-cvs@w3.org > May 2010

2006/unicorn/src/org/w3c/unicorn/response/impl DefaultContextXBeans.java,1.3,1.4

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Thu, 06 May 2010 10:58:38 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1O9yms-0002SP-FF@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/response/impl
In directory hutz:/tmp/cvs-serv9431/src/org/w3c/unicorn/response/impl

Modified Files:
	DefaultContextXBeans.java 
Log Message:
changed CDATA length threshold

Index: DefaultContextXBeans.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/response/impl/DefaultContextXBeans.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- DefaultContextXBeans.java	20 Oct 2009 12:41:46 -0000	1.3
+++ DefaultContextXBeans.java	6 May 2010 10:58:36 -0000	1.4
@@ -4,6 +4,7 @@
 // Please first read the full copyright statement in file COPYRIGHT.html
 package org.w3c.unicorn.response.impl;
 
+import org.apache.xmlbeans.XmlOptions;
 import org.w3.x2009.x10.unicorn.observationresponse.ContextType;
 import org.w3c.unicorn.response.Context;
 
@@ -32,7 +33,11 @@
 			colMax = Integer.parseInt(values[1]);
 		}
 		
-		value = context.xmlText().replaceAll("</?xml-fragment[^>]*>", "");
+		XmlOptions opts = new XmlOptions();
+		opts.setSaveCDataLengthThreshold(10000000);
+		opts.setSaveCDataEntityCountThreshold(-1);
+		
+		value = context.xmlText(opts).replaceAll("</?xml-fragment[^>]*>", "");
 	}
 	
 	public Integer getLine() {
@@ -64,6 +69,7 @@
 	}
 	
 	public String getContext() {
+		//Framework.logger.error(value);
 		return value;
 	}
 	
Received on Thursday, 6 May 2010 10:58:39 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:42 UTC