#region Coad's Code
Noah Coad, Microsoft Program Manager
Visual Studio Platform, Former C# MVP
April 2004 - Posts
C# Team FAQ Blog
Published 18 April 4 8:37 PM |
coad
The C# team at Microsoft has started a Frequently Asked Questions (FAQ) blog where they answer some interesting topics. Definitely a good read for C# developers. I've found it interesting to see the reasoning behind some of the descriptions made in the...
Two New CoadTools, AdvancedFileProperties & OrderedStringDictionary
Published 17 April 4 10:37 PM |
coad
My protege, Radoslav (Radi) Ivanov (age 16), has published his first code utilitity! It is an “Advanced File Properties“ reader that retrieves the NTFS extended properties of a file. It provides a DataTable wrapped method for an included COM DLL. I created...
RSS "FEED Validator" Bombs
Published 14 April 4 11:56 PM |
coad
ARG! After spending so much time making sure my RSS feeds are valid XML, I have run into a limitation of the seemingly most preeminent RSS feed validator online. It bombs out right at about 200K. If the feed is longer, it is invalid. There is no warning...
Well Formatted Blog, Can't Directly Copy from MS Word
Published 14 April 4 11:6 PM |
coad
Wow! Well I just had to go back through all my posts and repost them all. It seams that one can not directly copy and paste from a Microsoft Word document to achieve a nicely formatted blog. Invalid XML code is the end result causing the RSS feed to break...
Assimilate XML RSS Feed from URL in C#
Published 14 April 4 9:46 PM |
coad
This piece of code pulls an RSS feed and displays the title of the articles. It is here to demonstrate just how easy it is to pull XML off the web and utilize the data. I use Trace.WriteLine instead of Console.WriteLine so the report is fed to the Visual...
Edit File with Shell Registry Settings
Published 14 April 4 9:37 AM |
coad
This snippet of code looks up the registered editor for the file type passed. If it doesn’t find one, it uses notepad (it was of course designed originally for text files). Notice: See the cascading if statement both assigning and checking for null. private...
JScript XML Data Access
Published 13 April 4 11:10 PM |
coad
“Random Vocabulary Word.js” This simple JScript demonstrates just how easy it is to access data from an XML file through the Windows Scripting Host and MSHTML 4.0. You must have “Vocabulary.xml” in the same directory when running. // Created by Noah Coad...
Simple C# XSL Transformation
Published 13 April 4 11:6 PM |
coad
“XSLTransform.cs” And here is a simple C# translator that takes an XML file sends it through an XSL file transform and saves the output. It is intended to be used as a console application. This can be easily used to apply the CSV transform XSL to Vocabulary...
XSL Transform XML to CSV
Published 13 April 4 11:0 PM |
coad
“VocabularyToCSV.xsl” Since Comma Separated Value (CSV) files are so common, here is a transformation. It requires “ Vocabulary.xml ” and a translator. <? xml version ="1.0"?> <! -- Created by Noah Coad, coad.net/noah, noah@coad.net, 3/23/04...
HTML With XML Data Binding
Published 13 April 4 10:40 PM |
coad
“Vocabulary.html” This is used in conjunction with “ Vocabulary.xml ” to demonstrate IE HTML data binding. Without any scripting, this will pull data from the XML file and display it in the HTML page. This is considerably different than the XSLT that...
XSL Translation from XML to HTML
Published 13 April 4 10:34 PM |
coad
“Vocabulary.xsl” This is used in conjunction with “ Vocabulary.xml ” to demonstrate the power of XSL translation. Put both in the same directory, load the .xml file in IE, and IE will automatically apply the transformation into HTML. Key points: Translation...
Sample XML Data, Vocabulary.xml
Published 13 April 4 9:57 PM |
coad
“Vocabulary.xml” This is my first code posting so bear with as they get better. This is a sample XML file that will be used for a number of the other postings. <? xml version ="1.0" standalone ="yes"?> <? xml-stylesheet type= "text/xsl" href...
First Blog Post
Published 13 April 4 7:24 PM |
coad
Welcome to my first blog post! Let me introduce myself… My name is Noah Coad (pronounced “code”). I am up here at my first (and last, more below) MVP Global Summit, which has been absolutely incredible! My colleagues have convinced me to give this blog...
Search
Go
This Blog
Home
Contact
Tags
C#
General
Personal
Scripting
Tools
VSTS
XML
Community
Home
Blogs
Media
Groups
Archives
January 2006 (1)
November 2005 (3)
October 2005 (1)
July 2005 (2)
May 2005 (1)
April 2005 (6)
March 2005 (4)
February 2005 (7)
December 2004 (1)
November 2004 (1)
October 2004 (3)
July 2004 (1)
June 2004 (16)
May 2004 (6)
April 2004 (13)
News
My blog has moved:
Current Blog
General
Coad .NET Products
Syndication
RSS for Posts
Atom
RSS for Comments
Email Notifications
Go