Christian Geuer-Pollmann wrote:
>
> You say that
>
> <A><B><C></C></A>
>
> has to be corrected to
>
> <A><B><C></C></B></A>
>
> but why not to
>
> <A><B></B><C></C></A>
>
> ? You can't decide what's right if you don't have a DTD or
> Schema. You internet explorer can correct non-well-formed HTML
> because he "knows" HTML.
> But nobody knows "XML" ;-))
>

OK, you are right, but in my case I know that the first correction is the
right one. My example is too general: I am not trying to correct every
possible XML document, but specific ones for which I know the schema
(although nobody has ever cared to write it down :-( ). So we can assume
that the corrector knows where to add the end-tag. The problem remains that
I have to make the parser aware of the corrections.

Nicolas



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

Reply via email to