Hi. I am declaring a
dateTime attribute for an element among other attributes. In the XML instance, I
am inserting an incorrect value for the former attribute. When I use sax to
validate the XML instance, I get the error callback before the startElement
callback for the element, as expected. However, I have no way of identifying the
attribute the error refers to, since what I only get is the location of the
element in the text.
Is there any way I
can get callbacks for the attributes parsed? I guess not, but why??? How are
applications expected to handle errors inside attributes?
What's more,
wouldn't it be great, if the types of errors could be identified by some short
of error code? getMessage just doesn't do it, which means that one has to
determine the type of error using information from the application
itself.
thank you for your
time,
regards
nikos