----- Original Message -----
From: <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, June 19, 2001 8:27 PM
Subject: RE: DOMParser does not report errors for XML that are not
well-formed


> Peter,
> You could also try this out with the MemParse sample code that comes along
> with the package. If you modify the
> string in gXMLInMemBuf variable in MemParse.cpp from a well-formed XML
> string to a not well-formed one and try running the sample code, you will
> see the behavior that I am seeing. That is, it does not throw an
> XMLException ..... is this expected?
> -Jeetu
>

I changed the first tag to <company1>. The errors were printed as expected
(see below)

    Error at (file prodInfo, line 10, char 10): Unknown element 'company1'
    Error at (file prodInfo, line 10, char 10): Root element different from
DOCTYPE
    Fatal Error at (file prodInfo, line 16, char 10): Expected end of tag
'company1'
    Finished parsing the memory buffer containing the following XML
statements:


Be sure that you have changed the data not inside #ifdef OS390 section.
Regards.


Peter A. Volchek
Software Engineer
Metis International, Inc.
[EMAIL PROTECTED]




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

Reply via email to