Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Create root node using FOR XML

Status
Not open for further replies.

culshaja

Programmer
Aug 10, 1999
705
GB
Hi,

I am trying to create a root node for my document when using for XML AUTO. I cannot use the following:

Code:
SELECT '<Root>'
SELECT .....
SELECT '</Root>'

This is because the DOMDocument will not read it from the stream and errors in visual basic. Can anyone shed some light on this?

Thanks,

James :) James Culshaw
jculshaw@miniaturereview.co.uk
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top