diff options
author | Stef Walter <stef@memberwebs.com> | 2004-07-29 22:52:30 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2004-07-29 22:52:30 +0000 |
commit | 740d8a6bcb6521e188361befa7f5636c880bf63b (patch) | |
tree | f269a5d492d712be73d840fdefeb6ad247ee03db /src/rtfx.cpp | |
parent | 0105af34f6977c51619bf1060e74e3c249932c68 (diff) |
- Moved to DOMC
Diffstat (limited to 'src/rtfx.cpp')
-rw-r--r-- | src/rtfx.cpp | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/rtfx.cpp b/src/rtfx.cpp index 541432e..2a9f3fc 100644 --- a/src/rtfx.cpp +++ b/src/rtfx.cpp @@ -115,10 +115,7 @@ int main(int argc, char* argv[]) return 1; } - // TODO: This is disgusting. We need to bug the sablotron guys - // for a better way to serialize a document. DOM::Document doc = composer.getDocument(); - string xml = doc.serialize(); FILE* out = fopen(argv[1], "wb"); if(!out) @@ -127,7 +124,7 @@ int main(int argc, char* argv[]) return 1; } - fwrite(xml.c_str(), 1, xml.length(), out); + doc.serialize(out); fclose(out); return 0; } |