On Fri, Jul 10, 2009 at 11:36 PM, Petr Pajas<[email protected]> wrote:
>> I use libxml2.6.26 and libxml2.6.31, which version do you use? And my
>> parser options are:
>>        ret = xmlCtxtUseOptions(parser->xml_ctx, XML_PARSE_DTDATTR ||
>>                        XML_PARSE_DTDLOAD || XML_PARSE_DTDVALID);
>>
>
> Make sure you use binary OR (| not ||) !
>
>>>> I use libxml2.6.26 and libxml2.6.31, which version do you use? And my
>>>
>>>  latest version from git , 2.7.3 based, I ran gdb on xmllint --shell
>>
>> I use the latest version from the Git, but I still get my above
>> result. I mean, the entity_ref node has a entity_decl node but the
>> later has no children at all. I don't know why?
>>
>> Regards!
>> Bo
>
> You are passing 1 as the parsing flags, so DTDs will probably not get loaded.

Now, I change the || to |, but still get the same situation. And the
entities defined in the same document, not an external DTD. I really
have no idea about what happend.

Regards!
Bo
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to