<?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: Query large XML secondary data source</title><link>https://www.infopathdev.com:443/forums/thread/87390.aspx</link><pubDate>Mon, 25 Feb 2013 00:56:26 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:87390</guid><dc:creator>nikunj_mistry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/87390.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=87390</wfw:commentRss><description>Thanks Patrick.
This is what i have tried, i created a Secondary connection, which i set to fetch on demand.
I wrote a FileQueryConnection which then fetches the complete xml and loads it into memory xmldocument object, this done onload.

Now on my button click i query this in memory xmldocument which is very fast and almost solves my issue.

But now i have below two challenges:
1. how to show this data on screen in repeating table.
2. if result set returned by query is large again, i need to provide pagination


Thanks,
Nikunj</description></item><item><title>Re: Query large XML secondary data source</title><link>https://www.infopathdev.com:443/forums/thread/87362.aspx</link><pubDate>Sun, 24 Feb 2013 20:23:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:87362</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/87362.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=87362</wfw:commentRss><description>&lt;p&gt;Hi Nikunj,&lt;/p&gt;&lt;p&gt;You could cache the secondary data source in the form template so that it will be part of the XSN. It will require that the XSN be copied to the local desktop whenever you update it, but 5000 items is not that huge so maybe this is acceptable. On load performance should be quite fast if everything&amp;#39;s local.&lt;/p&gt;&lt;p&gt;Unfortunately, trying to use SharePoint Workspace and synchronize secondary XML file won&amp;#39;t work because InfoPath data connections don&amp;#39;t synch down. &lt;/p&gt;&lt;p&gt;Yet another option is to use SQL Express locally, but that will require some installation and additional cost to set up. We have a solution that does this but it&amp;#39;s not free.&lt;/p&gt;</description></item><item><title>Query large XML secondary data source</title><link>https://www.infopathdev.com:443/forums/thread/87349.aspx</link><pubDate>Sat, 23 Feb 2013 03:32:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:87349</guid><dc:creator>nikunj_mistry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/87349.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=87349</wfw:commentRss><description>Hi,

I am kind of newbie to Infopath. So it would be great if anyone can help me.
I am using infopath 2010, solution requires just to run offline i.e. on desktop and tablets.

i have xml secondary datasource, which is actually huge i.e. around 5000 items. I have set this not to load on form load.
I want to give user kind of search functionality, on button click, it queries this xml and only brings the required data.

Let me know how to go about it keeping performance in mind.

Thanks,
Nikunj</description></item></channel></rss>