mathieu wrote:
Quote:
Hi there,
>
Could someone please suggest an open source implementation of a
validating XML parser ?
|
SP is at
ftp://ftp.jclark.com/pub/sp/sp-1.3.4.tar.gz
rxp is at
http://www.inf.ed.ac.uk/research/is...ge?view=1&id=80
Quote:
I am interested in how this thing can
(should?) be designed. In particular how the errors should be handle:
|
This is always a problem, since the author cannot know what the user
wants to do on a given occasion: stop or continue.
Quote:
1. If one at a time, it make is difficult to handle from a GUI, since
only one error can be corrected at a time
|
And when the first error is corrected, the validation must start again
from the beginning.
Quote:
2. All errors are reported, which means that false positive may be
reported
|
This is very common because an error may not be recognisable as such
until some later condition makes it impossible to continue.
Quote:
Also how does the implementation report which elements contains
errors (using name, file position...).
|
onsgmls reports line number and character position, and optionally the
names of open entities. In a synchronous typographical interface, an
error can be indicated by many means (highlighting, change of focus,
error log, ...)
///Peter
--
XML FAQ:
http://xml.silmaril.ie/