Print Page | Close Window

GetLastTopics bug?

Printed From: Web Wiz Forums
Category: Web Wiz Web App Support Forums
Forum Name: Web Wiz Forums
Forum Description: Support forum for Web Wiz Forums application.
URL: https://forums.webwiz.net/forum_posts.asp?TID=30445
Printed Date: 31 March 2026 at 11:58am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: GetLastTopics bug?
Posted By: mtm81
Subject: GetLastTopics bug?
Date Posted: 16 August 2012 at 3:45pm

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?



Replies:
Posted By: mtm81
Date Posted: 21 August 2012 at 2:20pm
bump...Smile


Posted By: WebWiz-Bruce
Date Posted: 21 August 2012 at 3:40pm
The XML is formatted correctly, so there is no reason why you can not pull data for any part from the XML.

The only thing I can suggest is that you adapt your code to try different ways to return the data. If you are using Microsofts MSXML component, maybe try a different version.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net