28 |
|
{ |
29 |
|
api::Cout << "Content-Type: text/html; charset=UTF-8\r\n\r\n" << ios::Flush; |
30 |
|
|
31 |
+ |
xml::TextWriter xhtml(api::Cout); |
32 |
+ |
|
33 |
|
parse(); |
34 |
|
|
35 |
|
_H<xml::Document> document(xml::Parse("represent.xml")); |
36 |
|
_H<xml::Node> node(*document/"represent"); |
37 |
|
ext::String before(*node/"before"), after(*node/"after"); |
38 |
|
|
39 |
< |
api::Cout << before << ios::Flush; |
38 |
< |
|
39 |
< |
xml::TextWriter xhtml(api::Cout); |
39 |
> |
api::Cout << ios::NewLine << before << ios::Flush; |
40 |
|
|
41 |
|
{ |
42 |
|
xml::ScopeElement table(xhtml, "table"); |