revamped the encoding support, added iconv support, so now libxml if
* encoding.[ch], xmlIO.[ch], parser.c, configure.in : revamped
the encoding support, added iconv support, so now libxml if
compiled with iconv automatically support japanese encodings
among others. Work based on initial patch from Yuan-Chen Cheng
I may have broken binary compat in the encoding handler
registration scheme, but that was so utterly broken I don't
expect anybody to have used this feature until now.
* parserInternals.h: fixup on the CHAR range macro
* xml-error.h, parser.c: catch URL/URI errors using the uri.c
code.
* tree.[ch]: added xmlBufferGrow(), was needed for iconv
* uri.c: added xmlParseURI() I can't believe I forgot to
implement this one in 2.0 !!!
* SAX.c: moved doc->encoding update in the endDocument() call.
* TODO: updated.
Iconv rules :-)
Daniel
diff --git a/TODO b/TODO
index 51ea18b..2b4ae5e 100644
--- a/TODO
+++ b/TODO
@@ -6,6 +6,8 @@
TODO:
=====
+- xmlSwitchToEncoding() need a rewrite for correct handling of conversion
+ error code conditions.
- DOM needs
xmlAttrPtr xmlNewDocProp(xmlDocPtr doc, const xmlChar *name, const xmlChar *value)
int xmlPruneProp(xmlNodePtr node, xmlAtttrPtr attr);
@@ -14,7 +16,6 @@
- add support for the trick from Henry conf/sun/valid/empty.xml
- Correct standalone checking/emitting (hard)
2.9 Standalone Document Declaration
-- URI checkings (no fragments) rfc2396.txt
- Better checking of external parsed entities TAG 1234
- Find way of representing PERefs in the Dtd so that %entity; can
be saved back.
@@ -22,6 +23,7 @@
http://www.w3.org/XML/xml-19980210-errata ... bummmer
- Handle undefined namespaces in entity contents better ... at least
issue a warning
+- Issue warning when using non-absolute namespaces URI.
- General checking of DTD validation in presence of namespaces ... hairy
- fix --disable-corba configure switch handling, and use XML_WITHOUT_CORBA
not WITHOUT_CORBA flag
@@ -30,7 +32,7 @@
=====
- Get OASIS testsuite to a more friendly result, check all the results
- once stable.
+ once stable. Current state at:
http://xmlsoft.org/conf/result.html
- Optimization of tag strings allocation ?
@@ -55,11 +57,13 @@
- Add Xlink recognition/API
=> started adding an xlink.[ch] with a unified API for XML and HTML.
+ it's crap :-(
- Implement XSLT
=> seems that someone volunteered ?!?
- Implement XSchemas
+ => Really need to be done <grin/>
- O2K parsing;
=> this is a somewhat ugly mix of HTML and XML, adding a specific
@@ -88,6 +92,7 @@
Done:
=====
+- URI checkings (no fragments) rfc2396.txt
- Added a clean mechanism for overload or added input methods:
xmlRegisterInputCallbacks()
- dynamically adapt the alloc entry point to use g_alloc()/g_free()