Hi
All,
Given the fact that
whitespaces can pop up in unwanted places and often unintentionally caused by
using XML editors or other XML tools wouldn't it make sense to treat superfluous
whitespaces as validation warnings rather than errors?
The s/w application
in question is a web service that validates XML requests against an XML
schema. The document elements of all requests are empty-content
elements. Requests from some clients contain superfluous whitespaces in the
element content of the respective document elements. Xerces 2.2.0 declares these
requests as invalid (I would say justifiably), and they're thus rejected. The
problem is that this approach may be too strict. Not all client applications are
"sophisticated" enough to send perfectly valid XML requests. In many cases, it
is just the matter of whitespaces. Is it possible to somehow instruct Xerces
validator to ignore superfluous whitespaces without changing the XML
schema?
thx
Alex
