[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [xml] Entity replacement not correct. !!
- From: Daniel Veillard <veillard redhat com>
- To: harbhanu <harbhanu huawei com>
- Cc: ashutosh_p huawei com, xml gnome org
- Subject: Re: [xml] Entity replacement not correct. !!
- Date: Thu, 8 Mar 2007 05:22:23 -0500
On Thu, Mar 08, 2007 at 12:29:57PM +0530, harbhanu wrote:
> Hi,
>
> We are using SAX parser for parsing .In our xml documents there are some
> standard entities like < and & in the attribute for some elements
>
> We were expecting that they will get converted to the proper equivalent
> after parsing,(&).but & is getting converted to &
SAX sucks for entities handling in attributes. Libxml2 has a workaround
but it leads to this. Ask for entity replacement at the parser level. This
has been described in the past.
> Similar defect was reported earlier, link for the same is
> http://bugzilla.gnome.org/show_bug.cgi?id=389843
>
>
>
> Also, we have done xmlSubstituteEntitiesDefault (1); after doing
> xmlInitParser ();
>
xmlSubstituteEntitiesDefault uses the global variable and has been
progressively abandonned, use a parser entry point where you supply the
xmlParserOption(s)
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]