Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

How to avoid the default ROOT node in XML?

$
0
0

Hi,

We got a SSIS package in which, XML data is generated using SQL query. the query ends like this,

For XML Path('StockList')

But when the exported XML is opened in IE, by default we get the node -<ROOT> ...................  </ROOT>

enclosing our Data. How to avoid getting this root node??

This node not appearing when running the same query in SSMS. its appearing only when its run from SSIS.

Also,

We need to display this in the starting of generated XML,

<?xml version="1.0" encoding="UTF-8" ?>

How can we get the above in starting line of XML ?

Kindly let me know !


--------------------------- Radhai Krish | Golden Age is no more far | --------------------------



Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>