diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2000-08-25 23:46:50 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2000-08-25 23:46:50 +0000 |
commit | 088f428a20b4abff1925d0f811a2b4343591b2ce (patch) | |
tree | 2d85193b7381cdbe97617b6ba01a828867066974 | |
parent | 8c6d6af17aeb4d33ab023ed0dd69d322aaeedb4f (diff) | |
download | android_external_libxml2-088f428a20b4abff1925d0f811a2b4343591b2ce.tar.gz android_external_libxml2-088f428a20b4abff1925d0f811a2b4343591b2ce.tar.bz2 android_external_libxml2-088f428a20b4abff1925d0f811a2b4343591b2ce.zip |
Added a section on aliases, Daniel.
-rw-r--r-- | doc/encoding.html | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/doc/encoding.html b/doc/encoding.html index d273b818..d79a0b8c 100644 --- a/doc/encoding.html +++ b/doc/encoding.html @@ -241,6 +241,21 @@ machine with glibc-2.1 the list of supported encodings and aliases fill 3 full pages, and include UCS-4, the full set of ISO-Latin encodings, and the various Japanese ones.</p> +<h3>Encoding aliases</h3> + +<p>From 2.2.3, libxml has support to register encoding names aliases. The goal +is to be able to parse document whose encoding is supported but where the name +differs (for example from the default set of names accepted by iconv). The +following functions allow to register and handle new aliases for existing +encodings. Once registered libxml will automatically lookup the aliases when +handling a document:</p> +<ul> + <li>int xmlAddEncodingAlias(const char *name, const char *alias);</li> + <li>int xmlDelEncodingAlias(const char *alias);</li> + <li>const char * xmlGetEncodingAlias(const char *alias);</li> + <li>void xmlCleanupEncodingAliases(void);</li> +</ul> + <h2><a name="extend">How to extend the existing support</a></h2> <p>Well adding support for new encoding, or overriding one of the encoders |