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/
[EMAIL PROTECTED]  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to