One thing that i’d have to say that sets the .NET framework apart from any other frameworks would be the fact that it has EXCELLENT XML File handling capabilities. For example, take the following snippet (used in a program im submitting to a competition, i hope):
public int NewIndexRecovery() { // this creates an entirely new index. Pretty much the following: /* <Data> * </Data> */ System.IO.File.Delete(Properties.Settings.Default.IndexDocument); XmlDocument xNewIndex = new XmlDocument(); XmlNode xData = xNewIndex.CreateNode(XmlNodeType.Element, “Data”, null); XmlNode xComment = xNewIndex.CreateComment(“Index File - Created: ” + DateTime.Now.ToString()); XmlNode xCommentTwo = xNewIndex.CreateComment(“V” + strVersion + “DATAFILE”); xData.AppendChild(xComment); xData.AppendChild(xCommentTwo); xNewIndex.AppendChild(xData); xNewIndex.Save(Properties.Settings.Default.IndexDocument); return 0; }
That code pretty much creates a document similar to the following:
|
<Data> <!– Index File - Created 1/1/2008 12:38AM –!> <!– V2DATAFILE –!> </Data> |
The .NET framework handles all the pretty formatting as well, so you are actually able to read the files after you’re done with them. Pretty cool huh? Also, i have made an update to the XMLTV Viewer program, however, due to VS’s MSI maker thing complaining about missing bitmap files to build an installer, i am unable to upload it at the current time. The new features in the current version are:
- EPGStream.net functionality (so you just enter in your epgstream id’s, and it’s ready to go. The functionality can be turned on and off in the settings area, just remember that its a <LOT> buggy, so it may take some time to work. Don’t try to download EPGStream feeds via the Settings -> XMLTV Location Downloader, because you will crash it, rather, use the main one in the main menu. If you get a marquee progress bar (just continues going across, rather than an actual percentage), then its fetching an epgstream url.
- Bugfixes.
EDIT: It’s just been uploaded at the usual url. This will probably be the last build of it for some time (perhaps i might just recode the thing from scratch).
Download Link - XMLTV Viewer - LAST BUILD.