<?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: Secondary data source... PROBLEM!!!</title><link>https://www.infopathdev.com:443/forums/thread/19160.aspx</link><pubDate>Tue, 17 Apr 2007 18:02:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:19160</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/19160.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=19160</wfw:commentRss><description>&lt;p class="MsoNormal" style="margin:0in 0in 0pt;"&gt;&lt;span style="font-size:10pt;"&gt;&lt;font face="Times New Roman"&gt;Hi,&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0in 0in 0pt;"&gt;&lt;span style="font-size:10pt;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0in 0in 0pt;"&gt;&lt;span style="font-size:10pt;"&gt;&lt;font face="Times New Roman"&gt;You need to set the property of the &amp;lsquo;ALI&amp;rsquo; secondary DOM first before you are trying to get the node list.&lt;/font&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class="MsoNormal" style="margin:0in 0in 0pt;"&gt;&lt;font face="Times New Roman"&gt;&lt;span style="font-size:10pt;"&gt;For that one you need to use below code.&lt;br /&gt;&lt;br /&gt;//Get the secondary DOM&lt;br /&gt;&lt;/span&gt;&lt;font size="3"&gt;Xdocument2 &lt;/font&gt;&lt;span style="font-size:10pt;"&gt;secondaryDOM = (&lt;/span&gt;&lt;font size="3"&gt;Xdocument2&lt;/font&gt;&lt;span style="font-size:10pt;"&gt;)&lt;/span&gt;&lt;font size="3"&gt;XDocument.GetDOM(&amp;quot;ALI&amp;quot;)&lt;/font&gt;&lt;/font&gt;&lt;/p&gt;&lt;span style="font-size:10pt;font-family:'Times New Roman';"&gt;//Set the property of secondary DOM&lt;br /&gt;&lt;b&gt;secondaryDOM.setProperty(&amp;quot;SelectionNamespaces&amp;quot;, &amp;ldquo;Name space of the Secondary DOM&amp;rdquo;)&lt;/b&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-size:12pt;font-family:'Times New Roman';"&gt;Set persone = XDocument.GetDOM(&amp;quot;ALI&amp;quot;).selectNodes(&amp;quot;//PERSONALE&amp;quot;)&lt;/span&gt;</description></item><item><title>Re: Secondary data source... PROBLEM!!!</title><link>https://www.infopathdev.com:443/forums/thread/15235.aspx</link><pubDate>Thu, 12 Apr 2007 17:38:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15235</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15235.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=15235</wfw:commentRss><description>You are not using the require namespace. There are plenty of resources available if you need to look up information about namespaces to understand them.&lt;br /&gt;&lt;br /&gt;Basically "PERSONALE" is different than "d:PERSONALE"... that's why it can't find what you are looking for.</description></item><item><title>Secondary data source... PROBLEM!!!</title><link>https://www.infopathdev.com:443/forums/thread/13107.aspx</link><pubDate>Thu, 12 Apr 2007 16:38:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13107</guid><dc:creator>checco.rossi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13107.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13107</wfw:commentRss><description>Hello,&lt;br /&gt;i'm sorry for my terrible english...&lt;br /&gt;this is my code and I don't know why return 0...The right answer is 10!!!&lt;br /&gt;&lt;br /&gt;PERSONALE is a repeating table. &lt;br /&gt;"ALI" is a secondary datasource from ACCESS DB&lt;br /&gt;&lt;br /&gt;The first query (XDocument.DataObjects("ALI").QueryAdapter.Query) works well.&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;br /&gt;XDocument.DataObjects("ALI").QueryAdapter.Query&lt;br /&gt;	&lt;br /&gt;Set persone = XDocument.GetDOM("ALI").selectNodes("//PERSONALE")&lt;br /&gt;XDocument.UI.Alert(persone.length)&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;This is ALI's structure:&lt;br /&gt;&lt;br /&gt;myFields&lt;br /&gt;__dataFields&lt;br /&gt;____d:PERSONALE (repeating)&lt;br /&gt;______:NR&lt;br /&gt;______:COGNOME&lt;br /&gt;______:NOME&lt;br /&gt;______:SOCIETA&lt;br /&gt;______:AREA&lt;br /&gt;________AREE_REPARTO&lt;br /&gt;_________:ID&lt;br /&gt;_________:area&lt;br /&gt;_________:reaprto&lt;br /&gt;_________:note&lt;br /&gt;_________:UBICAZIONE&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;Checco.</description></item></channel></rss>