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

   <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.error: AttValue: " or ' expected
SAX.characters(missing AttValue in Attribute, 29)
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 !


Red Hat Virtualization group
Daniel Veillard      | virtualization library
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

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