You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xmlbeans.apache.org by ce...@apache.org on 2009/02/04 23:15:15 UTC
svn commit: r740918 -
/xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/validator/ValidatingXMLStreamReader.java
Author: cezar
Date: Wed Feb 4 22:15:15 2009
New Revision: 740918
URL: http://svn.apache.org/viewvc?rev=740918&view=rev
Log:
Temporary option to avoid the streaming attribute validation fix.
Modified:
xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/validator/ValidatingXMLStreamReader.java
Modified: xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/validator/ValidatingXMLStreamReader.java
URL: http://svn.apache.org/viewvc/xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/validator/ValidatingXMLStreamReader.java?rev=740918&r1=740917&r2=740918&view=diff
==============================================================================
--- xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/validator/ValidatingXMLStreamReader.java (original)
+++ xmlbeans/trunk/src/typeimpl/org/apache/xmlbeans/impl/validator/ValidatingXMLStreamReader.java Wed Feb 4 22:15:15 2009
@@ -52,6 +52,8 @@
extends StreamReaderDelegate
implements XMLStreamReader
{
+ public static final String OPTION_ATTTRIBUTE_VALIDATION_COMPAT_MODE = "OPTION_ATTTRIBUTE_VALIDATION_COMPAT_MODE";
+
private static final String URI_XSI = "http://www.w3.org/2001/XMLSchema-instance";
private static final QName XSI_TYPE = new QName(URI_XSI, "type");
private static final QName XSI_NIL = new QName(URI_XSI, "nil");
@@ -799,7 +801,11 @@
{
validate_attribute(i);
}
- _validator.nextEvent(Validator.ENDATTRS, _simpleEvent);
+
+ if (_options!=null && _options.hasOption(OPTION_ATTTRIBUTE_VALIDATION_COMPAT_MODE))
+ {}
+ else
+ _validator.nextEvent(Validator.ENDATTRS, _simpleEvent);
}
protected void validate_attribute(int attIndex)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: commits-help@xmlbeans.apache.org