#region Coad's Code
Noah Coad, Microsoft Program Manager
Visual Studio Platform, Former C# MVP
Browse by Tags
All Tags
»
XML
(
RSS
)
C#
General
Scripting
Obtaining Indented XML as a String
Published 22 June 4 12:55 AM |
coad
Using XmlDocument.Save(string file) produces a file with nicely indented elements. XmlDocument.OuterXml returns a string without any formatting. If you want a nicely formatted string (to display to the user, write to console, etc), without directly writing...
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...
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...
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