[sf-perl] Some well-formed XML?
rdm at cfcl.com
Tue Sep 20 11:48:51 PDT 2005
DF> Was this  supposed to refer to something that I missed?
I had planned to write a footnote, but forgot to do so. So:
 XML is a very flexible serialization format, structured as a
"list of lists", where each node can have an attribute hash.
URIs can be used to encode "edges", allowing arbitrary graph
structures to be represented.
So, it's fairly straightforward to serialize a set of RDBMS
tables as XML and load them back into another database. The
rules for the (de-)serialization, however, will probably be
hard-coded into your dumping and loading code.
Taking an arbitrary set of XML and loading it into an RDBMS,
however, is a totally different proposition. Consider that
any web page can be transformed (e.g., via HTML Tidy) into
XHTML, which is syntactically correct XML. Care to load the
result into a database? Will the results be accessible (in
a reasonable manner) by SQL? Can you be sure that you picked
up all of the "interesting" structural relationships?
email: rdm at cfcl.com; phone: +1 650-873-7841
http://www.cfcl.com - Canta Forda Computer Laboratory
http://www.cfcl.com/Meta - The FreeBSD Browser, Meta Project, etc.
More information about the SanFrancisco-pm