<?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: Access Secondary Data Source</title><link>https://www.infopathdev.com:443/forums/thread/13807.aspx</link><pubDate>Fri, 14 Oct 2005 16:44:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13807</guid><dc:creator>franck</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13807.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13807</wfw:commentRss><description>Hi,&lt;br /&gt;&lt;br /&gt;Try something around:&lt;br /&gt;&lt;br /&gt;IXMLDOMDocument3 oSecondDoc = (IXMLDOMDocument3)thisXDocument.DataObjects["YourDataSourceNameHer"].DOM;&lt;br /&gt;oSecondDoc.setProperty("SelectionNamespaces", "xmlns:dfs=\"http://schemas.microsoft.com/office/infopath/2003/dataFormSolution\" xmlns:d=\"http://schemas.microsoft.com/office/infopath/2003/ado/dataFields\"");&lt;br /&gt;IXMLDOMNode oSecDocNode = oSecondDoc.selectSingleNode("/dfs:myFields/dfs:dataFields");&lt;br /&gt;&lt;br /&gt;Hope that it helps.&lt;br /&gt;&lt;br /&gt;Franck Dauché</description></item><item><title>Access Secondary Data Source</title><link>https://www.infopathdev.com:443/forums/thread/12629.aspx</link><pubDate>Fri, 14 Oct 2005 16:10:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12629</guid><dc:creator>leetrotter</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12629.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12629</wfw:commentRss><description>Hi All,&lt;br /&gt;&lt;br /&gt;I have a form that is kept in a WSS library.  When a new form is opened I need to increment the serial number.  I have created a seconary data source that accesses the title field in the sharepoint library which *should* give me a list of all the existing serial number, that should return the file name which is also the serial number ie D123.xml  &lt;br /&gt;&lt;br /&gt;So using C# managed code how can I reference this secondary data source?&lt;br /&gt;&lt;br /&gt;Thanks&lt;br /&gt;&lt;br /&gt;Lee</description></item></channel></rss>