How to remove an XML declaration + root tag from string or xml
<p>I have an XML with xml declaration + root tag , which i don't need 
 -> my goal is convert it to JSON, without xml declaration and root tag</p>

<pre class="lang-javascript prettyprint-override"><code>var xml = XDocument.Parse(renderedOutput);
var xmlWithoutRoot = JsonConvert.SerializeXNode(xml, Newtonsoft.Json.Formatting.None, true);
// convert XML to JSON
var newJson = Newtonsoft.Json.JsonConvert.SerializeObject(xmlWithoutRoot);
</code></pre>

<p>How can i remove the XML deceleration <code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;</code> from the xml, before serialize it to JSON?</p>