Updated: 4/28/2002; 2:56:39 AM.
authorities here are alert.
        

Monday, April 15, 2002


In response to Chris Sells' query for a declarative language for constructing .NET CodeDom graphs, I present Xml2CodeDom. This tiny program uses reflection to construct objects and set properties as specified in an XML file. The resultant graph can then be used to generate compilable code in C#, JScript.NET, VB.NET, or any other language for which an appropriate ICodeGenerator implementation is available. Unfortunately, even the simplest of programs can turn into verbose monstrosities as evidenced by this HelloWorld example. But imagine having to write the code that constructs that tree by hand!
11:23:36 PM    comment []  




Radio has a feature called Categories where you can specify that each item is in any number of your specified categories. Unfortunately, the documentation on this feature is rather terse.

After I created my categories and edited each of my existing posts so that they were in at least one category, I couldn't find the generated pages showing all of the posts in each category. That's when I discovered that I should have checked the box that says "Check this box to render this category in HTML" for each category. After doing that, I still couldn't find the HTML. But I was able to find a directory called categories underneath the www directory in my Radio UserLand folder. Underneath this categories directory were my new categories. Each one contained just a single rss.xml file. Where's the HTML?

It turns out that I had to edit (without making any actual changes) to one post in each category in order to build the HTML for those categories. Apparently you have to edit a post in order to get the HTML to rebuild even after you modify a template (which I just did in order to get the links to my new categories to appear on my home page).


12:39:50 PM    comment []  


© Copyright 2002 .
 
April 2002
Sun Mon Tue Wed Thu Fri Sat
  1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30        
Mar   May


Click here to visit the Radio UserLand website.


Click to see the XML version of this web page.

Click here to send an email to the editor of this weblog.