Re: [xml] Incorrect character callback invocation?


On Fri, Aug 03, 2007 at 09:28:49PM +0530, Ashwin wrote:
>    Ok  point  taken, 
>    but  setting aside user defined entities. Something
>    like
>    <element attr1= >missing AttValue in Attribute</element>
>    also  exhibits  the same behaviour. Should it not return error, rather
>    than the character callback being invoked?
> paphio:~/XML -> ./testSAX test.xml 
> xmlSAXUserParseFile returned error 39
> SAX.setDocumentLocator()
> SAX.startDocument()
> SAX.error: AttValue: " or ' expected
> SAX.characters(missing AttValue in Attribute, 29)
> SAX.endDocument()
> xmlSAXUserParseFile returned error 39
> paphio:~/XML -> 
>  Dohhhh. This should not happen. You need the endDocument() to 
> help the application clear its context, but it should not push characters.
> I will investigate it is probably very easy. Thanks for pointinmg this out !
  I am attaching the patch for the above problem……It was a minor fix..









Attachment: InvalidCharCbkFix.txt
Description: Text document

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]