ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/zoe/trunk/Zoe.cpp
(Generate patch)

Comparing trunk/Zoe.cpp (file contents):
Revision 7 by douglas, 2004-07-09T17:12:54-07:00 vs.
Revision 8 by douglas, 2004-07-09T18:13:27-07:00

# Line 38 | Line 38 | int main(int argc, char* argv[])
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);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines