Re: [xml] Incorrect character callback invocation?
- From: Daniel Veillard <veillard redhat com>
- To: Ashwin <ashwins huawei com>
- Cc: xml gnome org, ranjit huawei com
- Subject: Re: [xml] Incorrect character callback invocation?
- Date: Fri, 3 Aug 2007 12:04:50 -0400
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 !
Daniel
--
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard | virtualization library http://libvirt.org/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]