<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: ADO.Net &amp; OPENXML to Perform Bulk Database Operations</title>
	<atom:link href="http://www.aneef.net/2007/12/18/adonet-openxml-to-perform-bulk-database-operations/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.aneef.net/2007/12/18/adonet-openxml-to-perform-bulk-database-operations/</link>
	<description>Do it in .Net way &#124; Blogging about C#,ASP.Net, LINQ,WPF and .Net Technologies</description>
	<lastBuildDate>Wed, 17 Feb 2010 13:44:05 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Jay</title>
		<link>http://www.aneef.net/2007/12/18/adonet-openxml-to-perform-bulk-database-operations/comment-page-1/#comment-91</link>
		<dc:creator>Jay</dc:creator>
		<pubDate>Tue, 06 Jan 2009 00:25:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.aneef.net/?p=7#comment-91</guid>
		<description>Sorry, the XML messed up!

&lt;FileName&gt;test&lt;/FileName&gt;&lt;CreatedDate&gt;10/10/2008&lt;/CreatedDate&gt;&lt;Size&gt;&lt;/Size&gt;</description>
		<content:encoded><![CDATA[<p>Sorry, the XML messed up!</p>
<p>&lt;FileName&gt;test&lt;/FileName&gt;&lt;CreatedDate&gt;10/10/2008&lt;/CreatedDate&gt;&lt;Size&gt;&lt;/Size&gt;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jay</title>
		<link>http://www.aneef.net/2007/12/18/adonet-openxml-to-perform-bulk-database-operations/comment-page-1/#comment-90</link>
		<dc:creator>Jay</dc:creator>
		<pubDate>Tue, 06 Jan 2009 00:23:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.aneef.net/?p=7#comment-90</guid>
		<description>I got a problem with using openxml to bulk insert XML data into the database.  In your sample, assume column &#039;Size&#039; accept NULLs and the XML supplied looks like this:  test10/10/2008

When the sp runs, I got the following error: 
Error converting data type nvarchar to numeric.

Any clue what&#039;s wrong?

Thanks.</description>
		<content:encoded><![CDATA[<p>I got a problem with using openxml to bulk insert XML data into the database.  In your sample, assume column &#8216;Size&#8217; accept NULLs and the XML supplied looks like this:  test10/10/2008</p>
<p>When the sp runs, I got the following error:<br />
Error converting data type nvarchar to numeric.</p>
<p>Any clue what&#8217;s wrong?</p>
<p>Thanks.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aneef Fashir</title>
		<link>http://www.aneef.net/2007/12/18/adonet-openxml-to-perform-bulk-database-operations/comment-page-1/#comment-85</link>
		<dc:creator>Aneef Fashir</dc:creator>
		<pubDate>Wed, 17 Dec 2008 07:39:42 +0000</pubDate>
		<guid isPermaLink="false">http://www.aneef.net/?p=7#comment-85</guid>
		<description>Hi Virgillio,

I Know that Varchar(Max) has this problems with invalid characters and i have mentioned about that on the second comment on this article about invalid characters. 

and im not storing the xml in the database. its just that i pass open xml and it retrieve the data from that and insert in to the table, and using WITH Statement im sure its very easy to find out reason. 

Thanks.
Aneef</description>
		<content:encoded><![CDATA[<p>Hi Virgillio,</p>
<p>I Know that Varchar(Max) has this problems with invalid characters and i have mentioned about that on the second comment on this article about invalid characters. </p>
<p>and im not storing the xml in the database. its just that i pass open xml and it retrieve the data from that and insert in to the table, and using WITH Statement im sure its very easy to find out reason. </p>
<p>Thanks.<br />
Aneef</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Virgilio</title>
		<link>http://www.aneef.net/2007/12/18/adonet-openxml-to-perform-bulk-database-operations/comment-page-1/#comment-84</link>
		<dc:creator>Virgilio</dc:creator>
		<pubDate>Tue, 16 Dec 2008 21:59:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.aneef.net/?p=7#comment-84</guid>
		<description>Also is you store an XML file into SQL with a Varchar Max data type.
Your shredding process might puke as Varchar will take invalid characters to Varchar this is &lt;, &amp; becomes &amp;,  is ok but is not well formed XML Also 
Why do you use XMLFileDetails after the With Statement?????
I&#039;ve shredded xml in the past and I&#039;ve never used this verbiage</description>
		<content:encoded><![CDATA[<p>Also is you store an XML file into SQL with a Varchar Max data type.<br />
Your shredding process might puke as Varchar will take invalid characters to Varchar this is &lt;, &amp; becomes &amp;,  is ok but is not well formed XML Also<br />
Why do you use XMLFileDetails after the With Statement?????<br />
I&#8217;ve shredded xml in the past and I&#8217;ve never used this verbiage</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aneef Fashir</title>
		<link>http://www.aneef.net/2007/12/18/adonet-openxml-to-perform-bulk-database-operations/comment-page-1/#comment-5</link>
		<dc:creator>Aneef Fashir</dc:creator>
		<pubDate>Mon, 14 Jan 2008 06:33:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.aneef.net/?p=7#comment-5</guid>
		<description>
Hi,

this is not a problem with the code. this happens because of   encoding errors. There are several basic approaches to solving this: &lt;a href=&quot;http://www.w3.org/TR/REC-xml#dt-chardata&quot; rel=&quot;nofollow&quot;&gt;escaping problematic characters&lt;/a&gt; (&lt; becomes &lt;, &amp; becomes &amp;, etc.), escaping entire blocks of text with &lt;a href=&quot;http://www.w3.org/TR/REC-xml#dt-cdsection&quot; rel=&quot;nofollow&quot;&gt;CDATA sections&lt;/a&gt;, or putting an &lt;a href=&quot;http://www.w3.org/TR/REC-xml#NT-EncodingDecl&quot; rel=&quot;nofollow&quot;&gt;encoding declaration&lt;/a&gt; at the start of the feed.

Another common error is the inclusion of whitespace characters (spaces, tabs, newlines) before the &lt;a href=&quot;http://www.w3.org/TR/REC-xml/#NT-XMLDecl&quot; rel=&quot;nofollow&quot;&gt;XML Declaration&lt;/a&gt;. If an XML Declaration is included, it must be the first thing in the document.

you can identify whether the XML Generated by the system is valid or invalid by writing it to an xml file in disk and try to open it with any browser. you can write XML to file like this:

&lt;code&gt;ds.WriteXml(string filename);&lt;/code&gt;
</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>this is not a problem with the code. this happens because of   encoding errors. There are several basic approaches to solving this: <a href="http://www.w3.org/TR/REC-xml#dt-chardata" rel="nofollow">escaping problematic characters</a> (< becomes &lt;, &#038; becomes &amp;, etc.), escaping entire blocks of text with <a href="http://www.w3.org/TR/REC-xml#dt-cdsection" rel="nofollow">CDATA sections, or putting an <a href="http://www.w3.org/TR/REC-xml#NT-EncodingDecl" rel="nofollow">encoding declaration</a> at the start of the feed.</p>
<p>Another common error is the inclusion of whitespace characters (spaces, tabs, newlines) before the <a href="http://www.w3.org/TR/REC-xml/#NT-XMLDecl" rel="nofollow">XML Declaration</a>. If an XML Declaration is included, it must be the first thing in the document.</p>
<p>you can identify whether the XML Generated by the system is valid or invalid by writing it to an xml file in disk and try to open it with any browser. you can write XML to file like this:</p>
<p><code>ds.WriteXml(string filename);</code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Randy Mardayat</title>
		<link>http://www.aneef.net/2007/12/18/adonet-openxml-to-perform-bulk-database-operations/comment-page-1/#comment-4</link>
		<dc:creator>Randy Mardayat</dc:creator>
		<pubDate>Fri, 11 Jan 2008 19:00:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.aneef.net/?p=7#comment-4</guid>
		<description>I tried using your code with my project.  I get an &quot;XML parsing error: A declaration was not closed&quot;.  Have you ever gotten it?</description>
		<content:encoded><![CDATA[<p>I tried using your code with my project.  I get an &#8220;XML parsing error: A declaration was not closed&#8221;.  Have you ever gotten it?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: &#160; SQL Server 2008 Table Valued Parameters&#160;by&#160;Aneef.Net</title>
		<link>http://www.aneef.net/2007/12/18/adonet-openxml-to-perform-bulk-database-operations/comment-page-1/#comment-2</link>
		<dc:creator>&#160; SQL Server 2008 Table Valued Parameters&#160;by&#160;Aneef.Net</dc:creator>
		<pubDate>Sun, 23 Dec 2007 15:36:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.aneef.net/?p=7#comment-2</guid>
		<description>[...] best way to pass an array of values into a SQL Server stored procedure.” One option I found was OPENXML, which I blogged [...]</description>
		<content:encoded><![CDATA[<p>[...] best way to pass an array of values into a SQL Server stored procedure.” One option I found was OPENXML, which I blogged [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
