mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-29 12:18:01 +01:00
committed latest 1.3 snapshot
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// SAXParserTest.cpp
|
||||
//
|
||||
// $Id: //poco/Main/XML/testsuite/src/SAXParserTest.cpp#9 $
|
||||
// $Id: //poco/Main/XML/testsuite/src/SAXParserTest.cpp#10 $
|
||||
//
|
||||
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
|
||||
// and Contributors.
|
||||
@@ -40,8 +40,8 @@
|
||||
#include "Poco/SAX/WhitespaceFilter.h"
|
||||
#include "Poco/XML/XMLWriter.h"
|
||||
#include "Poco/Latin9Encoding.h"
|
||||
#include "Poco/FileStream.h"
|
||||
#include <sstream>
|
||||
#include <fstream>
|
||||
|
||||
|
||||
using Poco::XML::SAXParser;
|
||||
@@ -277,7 +277,7 @@ void SAXParserTest::testRSS()
|
||||
parser.setFeature(XMLReader::FEATURE_EXTERNAL_PARAMETER_ENTITIES, true);
|
||||
|
||||
std::istringstream istr(RSS);
|
||||
std::ofstream ostr("rss.xml", std::ios::binary);
|
||||
Poco::FileOutputStream ostr("rss.xml");
|
||||
XMLWriter writer(ostr, XMLWriter::CANONICAL | XMLWriter::PRETTY_PRINT);
|
||||
filter.setContentHandler(&writer);
|
||||
filter.setDTDHandler(&writer);
|
||||
|
||||
Reference in New Issue
Block a user