I use Xerces-J to validate XML and it works fine in dev server, but it does bypass the validation in other servers (same windows OS), even the same code and configurations. Did you meet the same situation before?
Thanks in advance.
My environment: XercesJ 2.6.2 + Tomcat 4.1.27 + JDK 1.3.1+ windows 2000 server.
My code: use DOMParser.
Expeceted validation messages:
[org.xml.sax.SAXParseException: cvc-maxLength-valid: Value '12345678901' with length = '11' is not facet-valid with respect to maxLength '9'., org.xml.sax.SAXParseException: cvc-type.3.1.3: The value '12345678901' of element 'CODE' is not valid.]
posted 10 years ago
Just figure it out. XML namespaces are different in other servers.