<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Data Connections</title><link>https://www.infopathdev.com:443/forums/44.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: undeclared namespace prefix error</title><link>https://www.infopathdev.com:443/forums/thread/12205.aspx</link><pubDate>Tue, 23 May 2006 03:44:39 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12205</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12205.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=12205</wfw:commentRss><description>I'm glad the HowTo was helpful!&lt;br /&gt;&lt;br /&gt;You can also get the namespace that InfoPath has generated by looking at the very top of your code.  There will be some configuration information in [] there.</description></item><item><title>Re: undeclared namespace prefix error</title><link>https://www.infopathdev.com:443/forums/thread/12204.aspx</link><pubDate>Mon, 22 May 2006 23:38:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12204</guid><dc:creator>CrazyRaymo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12204.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=12204</wfw:commentRss><description>The answer is at the following link: &lt;br /&lt;a target="_blank" href=http://infopathdev.com/howto/tutorials/default.aspx?i=ed2cf0c5895f468995cdd081cf17fead&gt;http://infopathdev.com/howto/tutorials/default.aspx?i=ed2cf0c5895f468995cdd081cf17fead&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;The example is for an external xml file, but fixing a database access is almost the same.  I just used the debugger to find what namespace prefix InfoPath had generated.&lt;br /&gt;</description></item><item><title>undeclared namespace prefix error</title><link>https://www.infopathdev.com:443/forums/thread/12098.aspx</link><pubDate>Mon, 22 May 2006 22:20:56 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12098</guid><dc:creator>CrazyRaymo</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12098.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=12098</wfw:commentRss><description>I have a secondary data source based on a stored procedure.  I'm using JScript to run the query on a button click.  Data is returned fine and is displayed in the bound repeating table.  Here is the xml from the debugger immediate window:&lt;br /&gt; &lt;br /&gt;? XDocument.DataObjects("spSelManualCharges").DOM.xml&lt;br /&gt;"&amp;lt;dfs:myFields xmlns:dfs=\"http://schemas.microsoft.com/office/infopath/2003/dataFormSolution\"&amp;gt;&amp;lt;dfs:dataFields&amp;gt;&lt;br /&gt;	&amp;lt;d:ServiceDetail xmlns:d=\"http://schemas.microsoft.com/office/infopath/2003/ado/dataFields\" VendorID=\"3\" VendorAccount=\"Service1\" AmountBilled=\".0000\"/&amp;gt;&lt;br /&gt;	&amp;lt;d:ServiceDetail xmlns:d=\"http://schemas.microsoft.com/office/infopath/2003/ado/dataFields\" VendorID=\"3\" VendorAccount=\"Service2\" AmountBilled=\".0000\"/&amp;gt;&lt;br /&gt;&amp;lt;/dfs:dataFields&amp;gt;&amp;lt;/dfs:myFields&amp;gt;&lt;br /&gt;"&lt;br /&gt;&lt;br /&gt;But, when I try to access the data in JScript using MSXML methods, I get an "undeclared namespace" error:&lt;br /&gt; &lt;br /&gt;? XDocument.DataObjects("spSelManualCharges").DOM.selectSingleNode("/dfs:myFields")&lt;br /&gt;Reference to undeclared namespace prefix: 'dfs'.&lt;br /&gt;&lt;br /&gt;There is an xmlns declaration for dfs in the XDocument so, I don't understand what is happening.  BTW - There are several secondary sources on the form but no main data connection.&lt;br /&gt;&lt;br /&gt;Any help at all would be appreciated.&lt;br /&gt;&lt;br /&gt;Thank you,&lt;br /&gt;Crazy Raymo&lt;br /&gt;</description></item></channel></rss>