BTW, here's a reference on the XML declaration issue:
http://www.w3.org/TR/NOTE-sgml-xml-971215
+ The SGML declaration must be implied and cannot be
explicitly present in the document entity
--
.....Adam Di Carlo....adam@onShore.com.....<URL:http://www.onShore.com/>