I just refreshed myself on the namespace spec, and it's true that there are
a lot of "MUST" and "REQUIRED" statements about conforming documents.  For
example, that a name with ":" MUST conform to the QName production for an
XML document to conform to the Namespace spec.

The question is, what about well-formed XML docs that don't intend to
conform to the Namespace spec?  Should they receive a fatal error when
default settings are used in the parser?  I don't think so.  Again, I think
that particular error should be a warning rather than a fatal error.

Fatal Errors ought to be reserved for problems with well-formedness and/or
validation.  There is no recovery from such errors.

In this case, however, the parser can recover and continue processing.

The ability to turn off the namespace processing feature to workaround this
problem is better than nothing, but it doesn't work for all cases. If my
application is designed to accept the widest set of well-formed XML
documents, what settings do I use?  Turning off namespace processing for ALL
input XML seems like overkill.  Yet, if I want to handle legacy or unusual
XML that has ":" in names, but does not intend to conform to the NS spec,
what do I do?

If I return from handling the fatal error in my error handler, will the
parser proceed, or will it bail?  If I can just suppress that particular
error in my error handler, that provides me with a reasonable workaround.

Perry

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to