|
I'm using the API to pull in the lastTopics into a different part of the site. If I get a response such as: <?xml version="1.0" encoding="UTF-8"?> < ns=" " rel="nofollow - @namespace'>http://www.w3.org/1999/">@namespace html url( http://www.w3.org/1999/xhtml" rel="nofollow - http://www.w3.org/1999/xhtml ); :root { font:small Verdana; font-weight: bold; padding: 2em; padding-left:4em; } * { display: block; padding-left: 2em; } html|style { display: none; } html|span, html|a { display: inline; padding: 0; font-weight: normal; text-decoration: none; } html|span.block { display: block; } *[html|hidden], span.block[html|hidden] { display: none; } .expand { display: block; } .expand:before { content: '+'; color: red; position: absolute; left: -1em; } .collapse { display: block; } .collapse:before { content: '-'; color: red; position: absolute; left:-1em; } <ApiResponse><ErrorCode>0</ErrorCode><ErrorDescription/><ResultData recordcount="2"><Record><TopicName> <![CDATA[a second test]]> </TopicName><TopicID>2</TopicID><ForumName>Chat</ForumName><ForumID>1</ForumID><TopicLocked>False</TopicLocked><ReplyCount>0</ReplyCount><EventDateStart/><EventDateEnd/><Thanks>0</Thanks><Answer>False</Answer><Hidden>False</Hidden><PostID>2</PostID><PostDate>2012-08-16 07:21:14</PostDate><MemberID>1</MemberID><MemberName>user</MemberName><MemberIP>000</MemberIP><Post> <![CDATA[this is a 2nd test for us]]> </Post></Record><Record><TopicName> <![CDATA[tester topic]]> </TopicName><TopicID>1</TopicID><ForumName>Chat</ForumName><ForumID>1</ForumID><TopicLocked>False</TopicLocked><ReplyCount>0</ReplyCount><EventDateStart/><EventDateEnd/><Thanks>0</Thanks><Answer>False</Answer><Hidden>False</Hidden><PostID>1</PostID><PostDate>2012-08-16 07:11:58</PostDate><MemberID>1</MemberID><MemberName>Tes</MemberName><MemberIP>111</MemberIP><Post> <![CDATA[this is a new tester topic for testing only]]> </Post></Record></ResultData></ApiResponse>
If I query any part of and invidual record down to EventDateStart I get the info back(so in the case of the above response looking at the first record that would be ReplyCount 0 for example)however Anything in the response past that EventDateStart field doesn't get the response info back.. I get nothing.my code looks like this in my pagE: If Not thisnode.selectSingleNode("TopicName") IS NOTHING then LatestPostHTML = LatestPostHTML & thisnode.selectSingleNode("TopicName").Text end if If Not thisnode.selectSingleNode("ReplyCount") IS NOTHING then LatestPostHTML = LatestPostHTML & " (" & thisnode.selectSingleNode("ReplyCount").Text & ")" end if If Not thisnode.selectSingleNode("PostDate") IS NOTHING then LatestPostHTML = LatestPostHTML & " (" & thisnode.selectSingleNode("PostDate").Text & ")" end if I don't get the PostDate coming through. I've tried everything past that EventDateStart and nothing...any ideas anyone?
|