Re: [xml] Help! Resolve Entities Problem



Try to call

   xmlSubstituteEntitiesDefault(1);

at the begginning of your program.


Aleksey.

Andrew Law wrote:

I am new to libxml and I am using the version that comes with linux 2.4.7
distribution.  I try to parse an XML document with SAX interface, the XML
document contains entities such as (<, >, ', " and &),
what I should do to resolve these entities? I have tried to implement the getEntity and return the value from calling
xmlGetPredefinedEntity, it didn't work.  When I passed "apos" to
xmlGetPredefinedEntity, it returns "quot" in content field of the
xmlEntityPtr.  Is there something wrong with the version I am using?
Thanks,
Andrew


_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xml gnome org
http://mail.gnome.org/mailman/listinfo/xml






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