<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-8102723.post5009464162156375532..comments</id><updated>2011-12-06T16:00:39.475-06:00</updated><category term='cooking'/><category term='moving'/><category term='quotation'/><category term='virtualization'/><category term='transcode'/><category term='animals'/><category term='media'/><category term='costarica'/><category term='finance'/><category term='movies'/><category term='web'/><category term='organization'/><category term='books'/><category term='gadgets'/><category term='homeimprovement'/><category term='apple'/><category term='quotations'/><category term='shopping'/><category term='christmas'/><category term='environment'/><category term='wine'/><category term='service'/><category term='war'/><category term='united'/><category term='sleep'/><category term='firefox'/><category term='htpc'/><category term='taskschedulerengine'/><category term='sharepoint'/><category term='travel'/><category term='water'/><category term='powershell'/><category term='biology'/><category term='family'/><category term='sports'/><category term='keyboard'/><category term='kefir'/><category term='.net'/><category term='cycling'/><category term='tv'/><category term='dining'/><category term='work'/><category term='hardware'/><category term='commerceserver'/><category term='humor'/><category term='linux'/><category term='exercise'/><category term='weather'/><category term='epublib'/><category term='xml'/><category term='reflections'/><category term='iis'/><category term='drawing'/><category term='triathlon'/><category term='silverlight'/><category term='photography'/><category term='security'/><category term='politics'/><category term='airshow'/><category term='azure'/><category term='philanthropy'/><category term='voip'/><category term='music'/><category term='dream'/><category term='memory'/><category term='bookmarks'/><category term='theater'/><category term='etymology'/><category term='remoteaccess'/><category term='stpatricks'/><category term='realestate'/><category term='phishing'/><category term='recipe'/><category term='postsecret'/><category term='economics'/><category term='running'/><category term='sql'/><category term='software'/><category term='religion'/><category term='poetry'/><category term='ssl'/><category term='microsoft'/><category term='asp.net'/><category term='windows7'/><category term='vpn'/><category term='coffee'/><category term='statistics'/><category term='homeserver'/><category term='health'/><category term='shaving'/><category term='ipv6'/><category term='google'/><category term='transportation'/><title type='text'>Comments on Pettijohn.com: OPENXML and sp_xml_preparedocument with Namespaces...</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://www.pettijohn.com/feeds/5009464162156375532/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8102723/5009464162156375532/comments/default'/><link rel='alternate' type='text/html' href='http://www.pettijohn.com/2007/04/openxml-and-spxmlpreparedocument-with.html'/><author><name>Travis</name><uri>http://www.blogger.com/profile/04336404952882579145</uri><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='32' src='http://4.bp.blogspot.com/-whMqwvTht4E/TrpEUQFeGVI/AAAAAAAAAnc/gYXV87_0QlA/s220/img_headshot.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>1</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-8102723.post-7902923739349826807</id><published>2011-12-06T12:01:34.748-06:00</published><updated>2011-12-06T12:01:34.748-06:00</updated><title type='text'>what if you have 2 namespaces in your xml?

well t...</title><content type='html'>what if you have 2 namespaces in your xml?&lt;br /&gt;&lt;br /&gt;well then all you need to do is declare these namespaces next to each other , separated by a space &lt;br /&gt;&lt;br /&gt;declare @q xml = &lt;br /&gt;&amp;#39;&lt;br /&gt; &lt;br /&gt;  &lt;br /&gt;   maca&lt;br /&gt;     &lt;br /&gt;  &lt;br /&gt;   twix  &lt;br /&gt;     &lt;br /&gt; &lt;br /&gt;&amp;#39;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;declare @h int&lt;br /&gt;execute sp_xml_preparedocument @h output, @q, &amp;#39;&amp;#39;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;select &lt;br /&gt;*&lt;br /&gt;from openxml(@h, &amp;#39;//comida/e:doce/s:saudavel&amp;#39;, 2)&lt;br /&gt;with([g:exemplo] varchar(max))&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;execute sp_xml_removedocument @h</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/8102723/5009464162156375532/comments/default/7902923739349826807'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/8102723/5009464162156375532/comments/default/7902923739349826807'/><link rel='alternate' type='text/html' href='http://www.pettijohn.com/2007/04/openxml-and-spxmlpreparedocument-with.html?showComment=1323194494748#c7902923739349826807' title=''/><author><name>Anonymous</name><email>noreply@blogger.com</email><gd:image xmlns:gd='http://schemas.google.com/g/2005' rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img1.blogblog.com/img/blank.gif'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://www.pettijohn.com/2007/04/openxml-and-spxmlpreparedocument-with.html' ref='tag:blogger.com,1999:blog-8102723.post-5009464162156375532' source='http://www.blogger.com/feeds/8102723/posts/default/5009464162156375532' type='text/html'/><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='blogger.itemClass' value='pid-383795981'/></entry></feed>
