From: Alejandro Forero Cuervo (bachue@bachue.com)
Date: Thu Jan 25 2001 - 00:58:13 EST
well, seeing as there's helpers for ftp, http, and such it could
almost be reasonable to make a hook-system for file interface, as
well as for directories...
Hahah, this would be cool, a DTD and make directories appear as XML
files. :)
But yes, this would be nothing but useless, confusion-causing bloat
(hah, what if the user accidentally passes a directory and then starts
seeing lots of funny messages from the caller program stating that the
file does not adhere to the DTD the application expects).
if your interface can't filter out unreasonable files; fix the
interface. I've -never- had a program crash due to the person in
front of it entering unreasonable data - I always add filters at
that point. (and I've been writing programs for lots of years)
I agree with this. But the files are not always specified through a
GUI, they often come from command-line arguments, for example. That
the filters must exist is granted (okay, in this case it's not that
bad if they don't exist, the error messages are messier but that's
about all that happens). The point is that it would be easier to add
them inside libXML's File and Gzfile handlers than make code outside
of libxml duplicating the functionality of the handlers' Check
functions and then adding the check for directories only when the
filename does look like a filename (not a URL).
see above for graceful recovery. This one suspects that XML uses
it's own "open" for retrieving documents referenced within an XML
file but has not checked...
Hmm.
Must check this. But first, must sleep.
Thanks.
Alejo.
http://bachue.com/alejo
-- The mere formulation of a problem is far more essential than its solution. -- Albert Einstein.$0='!/sfldbi!yjoV0msfQ!sfiupob!utvK'x44;print map{("\e[7m \e[0m",chr ord (chop$0)-1)[$_].("\n")[++$i%77]}split//,unpack'B*',pack'H*',($F='F'x19). "F0F3E0607879CC1E0F0F339F3FF399C666733333CCF87F99E6133999999E67CFFCCF3". "219CC1CCC033E7E660198CCE4E66798303873CCE60F3387$F"#Don't you love Perl? ---- Message from the list xml@rpmfind.net Archived at : http://xmlsoft.org/messages/ to unsubscribe: echo "unsubscribe xml" | mail majordomo@rpmfind.net
This archive was generated by hypermail 2b29 : Thu Jan 25 2001 - 04:43:47 EST