38 |
|
Zoe::Zoe() : rss("zoe.rss") |
39 |
|
{ |
40 |
|
configure(); |
41 |
+ |
|
42 |
+ |
// This is just to figure out Jay's XML output, seems to have worked! |
43 |
+ |
xml::TextWriter rss(api::Cout.GetStream()); |
44 |
+ |
xml::ScopeElement root(rss, "rss"); |
45 |
+ |
|
46 |
+ |
rss.SetAttribute("version", "2.0"); |
47 |
+ |
|
48 |
+ |
xml::ScopeElement channel(rss, "channel"); |
49 |
+ |
|
50 |
+ |
rss.OpenElement("title"); |
51 |
+ |
rss.OutputText("Zoe's Away Messages"); |
52 |
+ |
rss.CloseElement(); |
53 |
+ |
rss.OpenElement("link"); |
54 |
+ |
rss.OutputText("http://computers.douglasthrift.net/zoe.xml"); |
55 |
+ |
rss.CloseElement(); |
56 |
|
} |
57 |
|
|
58 |
|
bool Zoe::debug(false); |