<?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>SharePoint Integration</title><link>https://www.infopathdev.com:443/forums/46.aspx</link><description> For questions concerning issues in the integration of SharePoint and Microsoft InfoPath.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Problem with GetListItems() Web service</title><link>https://www.infopathdev.com:443/forums/thread/15365.aspx</link><pubDate>Tue, 07 Mar 2006 15:20:27 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:15365</guid><dc:creator>liorlankri</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/15365.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=46&amp;PostID=15365</wfw:commentRss><description>I have a form that in it's C# code (That operate for me Web Reference to GetListItems methode of SharePoint)&lt;br /&gt;&lt;br /&gt;I use this code:&lt;br /&gt;{&lt;br /&gt;XmlNode returnXml = WS.GetListItem("ListName",null,ndQuery,null,null,ndQueryOptions);&lt;br /&gt;							&lt;br /&gt;				&lt;br /&gt;XmlNode MainNode = returnXml.ChildNodes.Item(1);&lt;br /&gt;MainNode = MainNode.ChildNodes.Item(1);&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;I want to know the value of "rs:data ItemCount" before I do somthing.&lt;br /&gt;I try this&lt;br /&gt;{&lt;br /&gt;XmlNode Nodecounter = MainNode.Attributes.GetNamedItem("rs:data");&lt;br /&gt;int  counter = Int32.Parse(Nodecounter.Attributes["ItemCount"].Value);&lt;br /&gt;}&lt;br /&gt;It's not work!!!&lt;br /&gt;&lt;br /&gt;How to do it???</description></item></channel></rss>