[xml] xmlSubstituteEntitiesDefault problems



-----BEGIN PGP SIGNED MESSAGE-----

Hello,
I need to parse the first document leaving all entities in place,
so I call
xmlSubstituteEntitiesDefault(0);
parse_first_doc();

and the second one with converted entities (actually, I generate the
second document from the first, but without the help of libxml since
it's much simpler to output the data of my objects to xml using
string operations rather than building a document from scratch):

xmlSubstituteEntitiesDefault(1);
parse_2nd_doc();

but for some reason, the entities (most notably <) of the first
doc
get replaced through their human readable chars. What did I
misunderstand?

Further, am I right assuming that if I filter a string through
xmlEncodeEntities() then it should be perfectly valid as content?
What
if I haven't got a doc to call it upon at that time? Create an empty
one?

TIA & Best regards & a happy new year everyone,
 Gabriel
qwe8«Ô?Î

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5i

iQEVAwUBPC9vKMZa2WpymlDxAQESOgf/RqFpCG5ZyAW90UfbfRtTOqhMn4QGYN3G
QxISmrZdHNQZJfArna/RAI8CSyH/JnFa5Bv2jviLaOe/9kEHz40zja6xluR3b+xs
ZfzT7Gf2rCO5AWUQqPeT7lQivHib3ZVipGGVhyD9ikPaOJsItoi8h2qh+O1DvyZm
AMx7sgA7vEOcrJ8uC5EQOwcN5KilIydBcmKluXjizvEeNxHdJ86JJFrcY5fhzmGU
3nJ7JFkyr3EA/gbLfB9l1clQ+9zAjxlqdp2X4pCJ9MZhY1aHLIzThNBy0BTjiMPk
q3srsVd7YnkVH7NiUDnMwwC83//8IFJdyBEGOfv1qcNW/pM+gl6BGg==
=8xVQ
-----END PGP SIGNATURE-----




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