Restore binary compat, more HTML stuff, allow stdin input, Daniel.
diff --git a/SAX.c b/SAX.c
index 67111f8..968021a 100644
--- a/SAX.c
+++ b/SAX.c
@@ -180,7 +180,13 @@
* TODO : not 100% sure that the appropriate handling in that case.
*/
if (systemId != NULL) {
- return(xmlNewInputFromFile(ctxt, systemId));
+ if (!xmlStrncmp(systemId, "http://", 7)) {
+ /* !!!!!!!!! TODO */
+ } else if (!xmlStrncmp(systemId, "ftp://", 6)) {
+ /* !!!!!!!!! TODO */
+ } else {
+ return(xmlNewInputFromFile(ctxt, systemId));
+ }
}
return(NULL);
}