Is '' a valid piece of XML? Can '' insert into oracle xblob column or XML column from MSSQL?
It's not valid xml. Valid xml requires an xml declaration with encoding type and a root node. Whether or not Oracle or SQL Server will accept it anyway is something you can check for yourself.
No. The spec says a well-formed XML document satisfies:
document ::= prolog element Misc*
where
element ::= EmptyElemTag
| STag content ETag
It's not an XML document - there needs to be at least one and at most one root element. (the XML declaration is optional if the encoding is UTF-8 and the version is 1.0 - production 22 of the XML recommendation). It is a valid XML fragment - either as an empty text node, or an empty range.
You'll have to define what 'piece of XML' means in your context.
It's not valid xml, but it can be inserted into an XML column in SQL Server 2005. I can't speak for Oracle, but I would almost be willing to bet it could.
Obviously with SQL Server 2005, you need to trade up the double quote for single quotes:
Insert Into MyTestTable(MyXmlColumn) Values('');
That works just fine - I just tested it and the insert was successful.