[xml] Problem with entities


I am trying to parse a document which doesn't have an associated DTD
or schema, and I really do not want to define the DTD.

The problem is that the document contains a lot of entities (things
like π, δ &foo;, &bar; and so on) and I can't make libxml2
cope with them. Basically, I get things like:

modules/stdlib/stdlib.xml:277: parser error : Entity 'int' not defined
modules/stdlib/stdlib.xml:278: parser error : Entity 'ExponentialE' not defined

Is there any way to make libxml2 do not complain with them?

Kind regards,

Alberto Simões

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