[xml] Usage of entities when writing documents without encoding


assume the following utf-8 encoded document:

<?xml version="1.0" ?>
    <Node>Content âÃâÃââ</Node>

If I run this through xmllint (on Windows, binary version 2.6.19 from xmlsoft.org)
the result looks like this:

<?xml version="1.0"?>
    <Node>Content &#xE4;&#xF6;&#xFC;</Node>

As you can see, the utf-8 characters have been replaced by entities that specify
the corresponding latin-1 characters.

Can I disable this behaviour?  Using "xmlDocDumpMemoryEnc", there are no more
entities, but the encoding is specified in the header now (which is something I
want to avoid).


Joachim Bauch, struktur AG
Download icoya OpenContent 1.3 for FREE!    visit http://www.icoya.de/iOC4free <-

Attachment: signature.asc
Description: OpenPGP digital signature

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