<?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>Web Services</title><link>https://www.infopathdev.com:443/forums/48.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: appendchild to a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/17844.aspx</link><pubDate>Tue, 14 Mar 2006 13:55:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17844</guid><dc:creator>fredarwin</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17844.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17844</wfw:commentRss><description>thanks Abhishek,&lt;br /&gt;&lt;br /&gt;I find a solution.&lt;br /&gt;&lt;br /&gt;I had to change the appendchild with insertBefore method.&lt;br /&gt;&lt;br /&gt;Really i don´t understand why i can´t use appendchild but maybe because the parent (Orders) is expecting to add two repeating nodes:&lt;br /&gt;ItemsbyOrder and CustomersbyOrder.&lt;br /&gt;This is solved if we create a not repeating group and we move the repeating group inside, therefore my parent right now is my new group created. But in some cases like using webservices create group is disabled.&lt;br /&gt;Advise, use insertBefore, method.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: appendchild to a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/17843.aspx</link><pubDate>Tue, 14 Mar 2006 13:03:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17843</guid><dc:creator>Abhishek</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17843.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17843</wfw:commentRss><description>Hi Fredarwin,&lt;br /&gt;&lt;br /&gt;I too had the same problem once upon a time.Just forgot as to how I solved it.&lt;br /&gt;But from what I remember....&lt;br /&gt;Did u change the relative position of ItemsbyOrder (Repeating Group) and  CustomersbyOrder((Repeating Group))&lt;br /&gt;i.e did u move ItemsbyOrder above CustomersbyOrder??? &lt;br /&gt;i.e in the DataSource Taskpane,did u select ItemsbyOrder  and move up???&lt;br /&gt;&lt;br /&gt;I dont know y it happens,but as from what I remember,I too moved one repeating group above the other in the datasource taskpane.&lt;br /&gt;And I too got the same error.&lt;br /&gt;So I think what I did was, get the repeating groups to the previous position.&lt;br /&gt;&lt;br /&gt;:)) very wierd.But try it.I think it should solve.&lt;br /&gt;regards,&lt;br /&gt;Abhishek</description></item><item><title>appendchild to a repeating table</title><link>https://www.infopathdev.com:443/forums/thread/17526.aspx</link><pubDate>Mon, 13 Mar 2006 19:25:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17526</guid><dc:creator>fredarwin</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17526.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17526</wfw:commentRss><description>scenario:&lt;br /&gt;My main connection is binding to a webservice that bring  master table an to details tables.&lt;br /&gt;&lt;br /&gt;Orders&lt;br /&gt;  ItemsbyOrder (Repeating Group)&lt;br /&gt;     field1&lt;br /&gt;     field2&lt;br /&gt;  CustomersbyOrder((Repeating Group))&lt;br /&gt;     fieldX&lt;br /&gt;&lt;br /&gt;I am using a repeating table to add rows by code throught a button click to my itemsbyOrder, but when i try to add the row ip send me the next message:&lt;br /&gt;&lt;br /&gt;"according to content model of parent element 'Orders', the element 'ItemsbyOrder' ss unexpected.&lt;br /&gt;CustomerbyOrder is expected."&lt;br /&gt;&lt;br /&gt;this is my code:&lt;br /&gt;var row = XDocument.DOM.selectSingleNode("//ItemsbyOrder");&lt;br /&gt;row = row.cloneNode(true);&lt;br /&gt;row.selectSingleNode("field1").text = "xProduct";&lt;br /&gt;&lt;br /&gt;var parent = XDocument.DOM.selectSingleNode("my:myfield/my:Orders");&lt;br /&gt;parent.appendChild(row);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;any advise??? &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description></item></channel></rss>