mirror of
https://github.com/tfussell/xlnt.git
synced 2024-03-22 13:11:17 +08:00
24 lines
416 B
C++
24 lines
416 B
C++
#include <xlnt/xlnt.hpp>
|
|
#include <xlnt/serialization/xml_document.hpp>
|
|
#include <xlnt/serialization/xml_node.hpp>
|
|
#include <xlnt/serialization/xml_serializer.hpp>
|
|
|
|
void standard()
|
|
{
|
|
xlnt::xml_document doc;
|
|
|
|
for (int i = 0; i < 1000000; i++)
|
|
{
|
|
doc.add_child("test");
|
|
}
|
|
|
|
xlnt::zip_file archive;
|
|
archive.writestr("sheet.xml", doc.to_string());
|
|
}
|
|
|
|
int main()
|
|
{
|
|
standard();
|
|
return 0;
|
|
}
|