|
|
Cool - I'll give it a try when I get home
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
That was fast!!!
Regards,
Brian Dela
|
|
|
|
|
Brian Delahunty wrote:
That was fast!!!
Well considering all it involves is two files, it was fast
The ASPX file simply takes an XSL file and transforms the returned XML file (which CP gives me on a silver platter) into an RSS compliant XML file. Funnily enough I first tried to do it in normal ASP, but it proved to be very unreliable (MSXML through ASP does not like loading remote XML docs strangely) and then in ASP.NET. ASP.NET was far better and fewer lines of code.
|
|
|
|
|
Paul Watson wrote:
The ASPX file simply takes an XSL file and transforms the returned XML file (which CP gives me on a silver platter) into an RSS compliant XML file. Funnily enough I first tried to do it in normal ASP, but it proved to be very unreliable (MSXML through ASP does not like loading remote XML docs strangely) and then in ASP.NET. ASP.NET was far better
To be honest I know very little about XML and ASP.NET... only starting in those areas now. So.. Any suggestions on where to start???
Regards,
Brian Dela
|
|
|
|
|
Brian Delahunty wrote:
To be honest I know very little about XML and ASP.NET... only starting in those areas now. So.. Any suggestions on where to start???
XML and it's kin (XSL, XSL:FO, SVG etc. etc.) I love, it is truly awesome stuff. ASP.NET is quite nice (I like .NET, but I think ASP.NET is not ready for prime time...)
Saying that here are some resources (all open in a new window, respek' to Chris):
I recommend for pure interest sake that you get into XML and XSL. Check out the sublime feeling when you take an XML data file and transform it into and XHTML doc with XSL, simple but just so cool. Something about it that just rocks.
And of course you can always just ask me, or post a question in the XML/XSL forum.
|
|
|
|
|
Paul Watson wrote:
I recommend for pure interest sake that you get into XML and XSL. Check out the sublime feeling when you take an XML data file and transform it into and XHTML doc with XSL, simple but just so cool. Something about it that just rocks.
What do you normally use it for... Personally I probably won't have much use fot XML, XSL etc at the moment but hopefully in the future.. What do you normally use it for.. if you don't mind me asking.
Regards,
Brian Dela
|
|
|
|
|
Brian Delahunty wrote:
What do you normally use it for
Mainly for our content management systems for websites. We store the content in XML files and use XSL to transform it to HTML and then send it to the client browser.
Also recently used XML to power an SVG graph using XSL (an article for CP on that soon.)
XML is also damned nice for app settings (better than an INI file or using the registry.)
XML also makes more sense than a relational database (like SQL or Oracle) when the data is hierarchical.
And finally the thing that XML is used for the most, and which we have done with great joy, is integration. Maybe a legacy accounting package which outputs to CVS and needs to be integrated into a new web site. Using XSL and XML for that is great.
|
|
|
|
|
Cool .Thanks for the info Paul. I know I shoudl know all this stuff already but I just hadn't the time. I didn't even knwo you had XML data files!!! --> How is the data stored in these??? [Please tell me to bugger off If I'm annoying you]
Regards,
Brian Dela
|
|
|
|
|
Brian Delahunty wrote:
How is the data stored in these???
XML is a text format and you just store your XML text in a, well, text file with a .XML extension.
Here is a very simple XML snippet which you can save to brian.xml and have your first XML document/file.
<?xml version="1.0" encoding="utf-8"?>
<cpians>
<cpian id="144040">
<firstname>Brian</firstname>
<lastname>Delahunty</lastname>
<birthdate>01 January 1901</birthdate>
</cpian>
<cpian id="42">
<firstname>Baba</firstname>
<lastname>Jub</lastname>
<birthdate>24 October 1979</birthdate>
</cpian>
</cpians>
In that cpians is the "root" node which contains all other nodes. Then there is a list of cpian nodes, in which are standard elements (fields) like firstname and birthdate .
The id bit is called an attribute btw.
It is really very simple to get the basics in.
|
|
|
|
|
Thanks Paul. Done a bit of reading on it last night.. seems fairly cool.
Regards,
Brian Dela
|
|
|
|
|
Hmm. It didn't work in trillian
No error message - it just refused to load any items.
It could be that you're lacking the line:
<!DOCTYPE rss PUBLIC "-//Netscape Communications//DTD RSS 0.91//EN"<br />
"http://my.netscape.com/publish/formats/rss-0.91.dtd">
Which should come between the <?xml version="1.0"?> and <rss version="0.91"> lines
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
benjymous wrote:
It could be that you're lacking the line:
Which should come between the and <rss version="0.91"> lines
I downloaded an RSS feed reader and I noticed my feed was not working. I put in the doctype, but no luck. There is something else going on, as soon as I have fixed it I will upload and you can try again. Seems like RSS is very finicky
Also any idea what DTD URL can I use for RSS 1.0?
|
|
|
|
|
the only thing I can see that might be an issue is the "xmlns:codeproject="http://codeproject.com/webservices/" bit in the rss tag. The rest looks pretty standard to me
Paul Watson wrote:
I downloaded an RSS feed reader
Ooh, can you give me a url? (I've only tested my feed on trillian, so can't be certain it actually works properly)
Paul Watson wrote:
Also any idea what DTD URL can I use for RSS 1.0?
Nope. How about doing a google search for other RSS feeds and see what they use?
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
benjymous wrote:
the only thing I can see that might be an issue is the "xmlns:codeproject="http://codeproject.com/webservices/" bit in the rss tag
God that drove me mad. The xml feed from the CP webservices have that namespace declaration. Now the XSL has to have that namespace declaration to properly access the XML-DOM. At first I did not notice it and I banged my head against the wall trying to figure out why the xsl:for-each was not picking anything up.
But anyway, I removed that namespace decl. from the xml file to see if it was it, but it wasn't (thankfully, otherwise I would have to modify the xml source feed before transform, which is just dirty work.)
benjymous wrote:
Ooh, can you give me a url? (I've only tested my feed on trillian, so can't be certain it actually works properly)
Feedreader[^]
It is actually quite a sweet little app. It reads your RSS feed fine, but not mine.
|
|
|
|
|
Ooh, what about mime type? I use:
"Content-type: text/xml\n\n"
--
Help me! I'm turning into a grapefruit!
|
|
|
|
|
We have MFC, ATL, and WTL forums, what about a forum for the non-Microsoft windowing libraries and toolkits?
Jason Gerard
|
|
|
|
|
I suggest that you change the background color of the line that shows a message that the logged in user posted. Sometimes it is diffcult to track down where I have posted and what was a response to my post...
|
|
|
|
|
Ray Cassick wrote:
Sometimes it is diffcult to track down where I have posted and what was a response to my post...
Keep an eye out for your name
Regards,
Brian Dela
|
|
|
|
|
|
|
It would be nice to set a filter on the popularity or score for articles in the sections overviews. Some sections are pretty crowded already.
So I could set the score to 4+ and I see only articles rated 4 or higher. Or popularity <5 (because I dont want to see all top-rated multi-color-edit field articles)
Pleeeeeze?
...make it about Visual C++, and don't ever mention Visual Basic. Nick Hodapp (MSFT) in Semicolon[^]
|
|
|
|
|
The only problem is that you won't see the new articles. And if everybody would set a +4 filter, then no new articles would be rated.
The Romulans are... beyond arrogant.
202.The justification of profit is profit.
|
|
|
|
|
Make it per session for each section? Nice if you are looking for something.
Personally I would also like to do a search and see only results above a certain rating.
...make it about Visual C++, and don't ever mention Visual Basic. Nick Hodapp (MSFT) in Semicolon[^]
|
|
|
|
|
Oooh, so many choices... Ah, who am i kidding, #3's the keeper!
-----
If you really what to get shitfacde tell a crowded bar that is is yourt borthday and hife your wallet. you ka will many more friends.
- David Wulff, Brithday selebrations, 9/19/02
|
|
|
|