Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.databases.ms-sqlserver    |    Notorious Rube Goldberg contraption    |    19,505 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 19,303 of 19,505    |
|    Erland Sommarskog to chris H    |
|    Re: Unable to query xml data in sql serv    |
|    11 Jun 20 00:15:05    |
      From: esquel@sommarskog.se              chris H (chris.sjpd@gmail.com) writes:       > That is a complete xml file. When I doubleclick to open it, it does not       have root tag.       >              I would say it's not an XML file then. An XML file has exactly a single root       tag. SQL Server supports repeated root tags, but there are no root tags at all       here.              I get this error from sp_xml_preparedocument:              Msg 6602, Level 16, State 2, Procedure sp_xml_preparedocument, Line 1 [Batch       Start Line 0]       The error description is 'Only one top level element is allowed in an XML       document.'.                     DECLARE @x xml =       ' |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca