In a COM-Wrapped DLL, having a class named "CGlobals" that is both global and static is like having a class named "CMemoryLeak" - TSE
21.1.09
Classic C++ Quote
13.1.09
Howto: Save an XmlDocument with single-quoted attributes
There are some cases in which one has to deal with non-standard XML serialization. We all know why this can happen, (cough, cough, legacy code) but then we have to make things work anyway. So...say you are reading and writing XML that uses single quotes instead of double quotes to surround attributes (its valid, just non-standard). If you used XmlDocument.Save() to write out the DOM, you then may have been dismayed to see double quotes. So how to make .NET spit out single quotes?
public void WriteSingleQuotedXml(XmlDocument document, string path)
{
using (XmlTextWriter writer =
new XmlTextWriter(path, System.Text.Encoding.Default))
{
//Save using single quotes around attributes, etc
writer.QuoteChar = '\'';
// Write XML data.
document.Save(writer);
}
}
Now that that is out of the way, perhaps you need to get rid of the leading "< ? x m l >", "xmlns:xsi" and "xmlns:xsd" stuff?
11.1.09
gcalview - Display events from multiple Google Calendars in your website
gcalview
HTML+Javascript for aggregating and displaying multiple public Google Calendar FeedsGoogle Calendar makes it easy to have and maintain a public calendar. There is even an official Google Calendar Widget that can be embedded into a web page. However, this project seeks to be an alternative widget that is themeable, compact, and supports multiple public feeds (feed aggregation).
Built in Javascript and HTML, this project allows simple embedding of a Google Calendar Aggregation widget using JSON and gdata.
Features
- Aggregate multiple Google Calendar feeds into a single Javascript+HTML widget.
- Manually adding gcalview to your web page is easy.
- Styling gcalview with your own colors, text styles, and layouts in CSS is also easy.
- Upcoming events are ordered by "proximity" to the current date.
- Intuitive categories of "Today", "This Week", "Next Week", etc. are used to organize and prioritize.
- Event details are hidden and shown inline (by clicking the "+") to allow for a compact representation.