• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Different XML validation behavior on Tomcat 4.1

 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, All,

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.

Jason


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.]
 
Jason Liao
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Just figure it out. XML namespaces are different in other servers.

Thanks for review.

Jason
 
I knew I would regret that burrito. But this tiny ad has never caused regrets:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic