<?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>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Reference to undeclared namespace prefix : 'dfs'</title><link>https://www.infopathdev.com:443/forums/thread/14106.aspx</link><pubDate>Tue, 13 Dec 2005 10:54:33 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14106</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14106.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14106</wfw:commentRss><description>Salut,&lt;br /&gt;&lt;br /&gt;Are you sure that the namespace is always the same for:&lt;br /&gt;&lt;br /&gt;XDocument.UI.Alert(myList.selectSingleNode("/dfs:myFields/dfs:dataFields/&lt;font color="blue"&gt;dfs:sccustomer&lt;/font id="blue"&gt;[@Title='" + nodeCustomer + "']").Text); &lt;br /&gt;&lt;br /&gt;I think it's tns: not dfs for this one!&lt;br /&gt;&lt;br /&gt;++&lt;br /&gt;&lt;br /&gt;Thierry</description></item><item><title>Re: Reference to undeclared namespace prefix : 'dfs'</title><link>https://www.infopathdev.com:443/forums/thread/14105.aspx</link><pubDate>Tue, 13 Dec 2005 08:38:04 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14105</guid><dc:creator>degrem_m</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14105.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14105</wfw:commentRss><description>Hi, &lt;br /&gt;&lt;br /&gt;Thanks for your help. I didn't have this error, however, infoPath return me empty string whereas I should have a value.&lt;br /&gt;&lt;br /&gt;I wrote : &lt;br /&gt;&lt;br /&gt;	var nodeCustomer =  eventObj.Source.nodeValue;	&lt;br /&gt;	XDocument.UI.Alert(nodeCustomer);&lt;b&gt;&lt;font color="red"&gt;//return a good value&lt;/font id="red"&gt;&lt;/b&gt;&lt;br /&gt;	&lt;br /&gt;	XDocument.DataObjects.Item("sccustomerUpdate").Query();&lt;br /&gt;	var myList = XDocument.GetDOM("sccustomerUpdate");&lt;br /&gt;	myList.setProperty("SelectionNamespaces", 'xmlns:dfs="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution"');&lt;br /&gt;	XDocument.UI.Alert(myList.selectSingleNode("/dfs:myFields/dfs:dataFields/dfs:sccustomer[@Title='" + nodeCustomer + "']").Text); &lt;b&gt;&lt;font color="red"&gt;// return empty string &lt;/font id="red"&gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Some body has an idea ? &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Michel DEGREMONT.</description></item><item><title>Re: Reference to undeclared namespace prefix : 'dfs'</title><link>https://www.infopathdev.com:443/forums/thread/14104.aspx</link><pubDate>Mon, 12 Dec 2005 14:38:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14104</guid><dc:creator>Matt Faus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14104.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14104</wfw:commentRss><description>Haha, I ran into this error when I started with InfoPath too, it took so long to figure out what was going on! It happened to me and by the looks of it to Michel because of copying from code examples and tutorials without really knowing what was going on.  Anyway, here's further reference for namespaces:&lt;br /&gt;&lt;br /&lt;a target="_blank" href=http://www.w3schools.com/xml/xml_namespaces.asp&gt;http://www.w3schools.com/xml/xml_namespaces.asp&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;---------------&lt;br /&gt;Matt Faus&lt;br /&gt;InfoPath Dev Texas&lt;br /&gt;</description></item><item><title>Re: Reference to undeclared namespace prefix : 'dfs'</title><link>https://www.infopathdev.com:443/forums/thread/14103.aspx</link><pubDate>Mon, 12 Dec 2005 12:45:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:14103</guid><dc:creator>Coita Thierry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/14103.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=14103</wfw:commentRss><description>Hi (Salut),&lt;br /&gt;&lt;br /&gt;Welcome on board!&lt;br /&gt;&lt;br /&gt;I have the code for c# :&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;try.setProperty("SelectionNamespaces", "xmlns:dfs=\"http://schemas.microsoft.com/office/infopath/2003/dataFormSolution\"");&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;but I think it's a things like this for Jscript:&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;try.setProperty("SelectionNamespaces", 'xmlns:dfs="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution"');&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Bonne Chance&lt;br /&gt;&lt;br /&gt;++&lt;br /&gt;&lt;br /&gt;Thierry</description></item><item><title>Reference to undeclared namespace prefix : 'dfs'</title><link>https://www.infopathdev.com:443/forums/thread/12710.aspx</link><pubDate>Mon, 12 Dec 2005 09:12:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12710</guid><dc:creator>degrem_m</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12710.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12710</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;I work with InfoPath and JavaScript.&lt;br /&gt;&lt;br /&gt;I have got Form with data source from WSS (name is "sccustomerUpdate").&lt;br /&gt;&lt;br /&gt;When in my code I call this secondary source I have this error : Reference to undeclared namespace prefix : 'dfs'&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;However, I change data source view : &lt;br /&gt;&lt;br /&gt;XDocument.DataObjects.Item("sccustomerUpdate").Query();&lt;br /&gt;var try = XDocument.GetDOM("sccustomerUpdate");&lt;br /&gt;XDocument.UI.Alert(try.documentElement.selectSingleNode("/dfs:myFields/dfs:dataFields/dfs:sccustomer/@PAM").Text);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;How can I do ?&lt;br /&gt;&lt;br /&gt;Thank for you help.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Michel DEGREMONT.</description></item></channel></rss>