From fb1e8105536a5c3a2cbe291e012294da562cd9f4 Mon Sep 17 00:00:00 2001 From: Tomaž Vajngerl Date: Thu, 15 May 2014 23:49:17 +0200 Subject: test: don't create root element in startDocument() in xmlwriter Change-Id: Ia08e9f8caf2a2fb42855dcb2245e013e1a181216 --- test/source/mtfxmldump.cxx | 10 ++++------ test/source/xmlwriter.cxx | 3 +-- 2 files changed, 5 insertions(+), 8 deletions(-) (limited to 'test/source') diff --git a/test/source/mtfxmldump.cxx b/test/source/mtfxmldump.cxx index ef127e355867..31f9aba37978 100644 --- a/test/source/mtfxmldump.cxx +++ b/test/source/mtfxmldump.cxx @@ -168,7 +168,8 @@ void MetafileXmlDump::dump(GDIMetaFile& rMetaFile) xmlTextWriterSetIndent( xmlWriter, 1 ); XmlWriter aWriter(xmlWriter); - aWriter.startDocument("metafile"); + aWriter.startDocument(); + aWriter.startElement("metafile"); for(MetaAction* pAction = rMetaFile.FirstAction(); pAction != NULL; pAction = rMetaFile.NextAction()) { @@ -391,12 +392,9 @@ void MetafileXmlDump::dump(GDIMetaFile& rMetaFile) } } - aWriter.endDocument(); - for(size_t i=0; i