I want to query the variables and their values in a SSIS package and since the package file is a xml file I thought I import it to SQL Server and query it from there. But it seems that the file contains single quotes from some SQL queries and when I paste the content in both single and double quotation marks the content cannot fit inside as text. So what kind of xml document is this SSIS package if it is not a valid xml?
I.e. when I try do do something like this it will not work? Is my only solution to do a "find and replace" of the single quotes with '?
DECLARE @xmlDocument nvarchar(max);
SET @xmlDocument = N'<ROOT>
<Customers CustomerID="XYZAA" ContactName="Joe" CompanyName="Company1">
<Orders CustomerID="XYZAA" OrderDate="2000-08-25T00:00:00"/>
<Orders CustomerID="XYZAA" OrderDate="2000-10-03T00:00:00"/>
</Customers>
<Customers CustomerID="XYZBB" ContactName="Steve"
CompanyName="Company2">No Orders yet!
</Customers>
</ROOT>';