Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

The error description is 'XML document must have a top level element.'. Expand / Collapse
Author
Message
Posted Monday, July 21, 2008 11:53 PM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Tuesday, July 22, 2008 6:08 AM
Points: 1, Visits: 5
I get the above error in sql.
In my local everything works fine but after publishing when hosting in a server i get the error
'XML document must have a top level element.'.
hope anyone give a quick reply
Post #538162
Posted Tuesday, July 22, 2008 4:57 PM
SSCarpal Tunnel

SSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal TunnelSSCarpal Tunnel

Group: General Forum Members
Last Login: Monday, November 3, 2014 4:30 PM
Points: 4,574, Visits: 8,366
Add top level element around your XML:

{MyXMLDoc}
... your XML here
{/MyXMLDoc}

Sorry, I had to replace proper tag brackets with {} because otherwise site does not display it.
Post #538897
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse