mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2026-12-01 08:07:08 +01:00
Update POCO library.
This commit is contained in:
1 parent
8d15f4b6e9
commit
233fc103f9
2521 files changed
+257092
-72789
No files matched your search
+3
-3
@@ -33,7 +33,7 @@ int main(int argc, char** argv)
|
||||
// build a DOM document and write it to standard output.
|
||||
|
||||
AutoPtr<Document> pDoc = new Document;
|
||||
|
||||
|
||||
AutoPtr<Element> pRoot = pDoc->createElement("root");
|
||||
pDoc->appendChild(pRoot);
|
||||
|
||||
@@ -46,11 +46,11 @@ int main(int argc, char** argv)
|
||||
AutoPtr<Text> pText2 = pDoc->createTextNode("text2");
|
||||
pChild2->appendChild(pText2);
|
||||
pRoot->appendChild(pChild2);
|
||||
|
||||
|
||||
DOMWriter writer;
|
||||
writer.setNewLine("\n");
|
||||
writer.setOptions(XMLWriter::PRETTY_PRINT);
|
||||
writer.writeNode(std::cout, pDoc);
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in new issue
Block a user