<?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: Getting structure of a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/57166.aspx</link><pubDate>Wed, 21 Jul 2010 20:44:18 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57166</guid><dc:creator>blackhawk</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57166.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=57166</wfw:commentRss><description>&lt;p&gt;Sorry for the long delay in responding...but that worked most excellently.&amp;nbsp;&amp;nbsp; I didn&amp;#39;t even think about that until you brough it up.&amp;nbsp;&amp;nbsp; Kind of one of those DOH! moments.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;Thank you!!&lt;/p&gt;</description></item><item><title>Re: Getting structure of a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/57043.aspx</link><pubDate>Sat, 17 Jul 2010 05:07:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57043</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57043.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=57043</wfw:commentRss><description>&lt;p&gt;You can load up the template&amp;#39;s sampledata XML file with the following code.&amp;nbsp; That should contain everything you need to figure out the structure you&amp;#39;re looking for:&lt;/p&gt;
&lt;blockquote&gt;&lt;font size="2"&gt;
&lt;p&gt;&lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;IXMLDOMDocument&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; doc = thisXDocument.CreateDOM();&lt;br /&gt;doc.load(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;&amp;quot;sampledata.xml&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;);&lt;/p&gt;&lt;/font&gt;&lt;/blockquote&gt;</description></item><item><title>Getting structure of a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/57042.aspx</link><pubDate>Sat, 17 Jul 2010 01:45:37 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:57042</guid><dc:creator>blackhawk</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/57042.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=57042</wfw:commentRss><description>&lt;p&gt;Is there a way to get the structure of a repeating group element programmatically in IP2003?&lt;/p&gt;
&lt;p&gt;Here is what I am trying to do:&lt;/p&gt;
&lt;p&gt;I have a secondary (or sometimes a&amp;nbsp;primary) data source driven by a web service.&amp;nbsp;&amp;nbsp; There are times when the web service returns no data due to the input parameters, however&amp;nbsp;I need to be able to add a node and it&amp;#39;s children&amp;nbsp;to it, but because there is no data to use as a template, I cannot programmatically add one using the data source.&amp;nbsp; Is there a way to get to the schema and look up the information to create a new node (and it&amp;#39;s children)?&amp;nbsp; &lt;/p&gt;
&lt;p&gt;I am using the 2003 OM.&lt;/p&gt;
&lt;p&gt;Example:&lt;/p&gt;
&lt;p&gt;Sample of what InfoPath sees:&lt;/p&gt;
&lt;p&gt;&amp;lt;MyData&amp;gt;&lt;br /&gt;....&amp;lt;Row&amp;gt; (repeating)&lt;br /&gt;........&amp;lt;Col1 /&amp;gt;&lt;br /&gt;........&amp;lt;Col2 /&amp;gt;&lt;br /&gt;........&amp;lt;Col3 /&amp;gt;&lt;br /&gt;....&amp;lt;/Row&amp;gt;&lt;br /&gt;&amp;lt;/MyData&amp;gt;&lt;/p&gt;
&lt;p&gt;I don&amp;#39;t know in advance what this structure is, so I cannot assume anything about the data source.&amp;nbsp;&amp;nbsp; I would like to read the XSD document in some way to extract the information and then add a new Row element and the subsequent column elements.&lt;/p&gt;
&lt;p&gt;Is this possible?&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>