updated on Mon Jan 16 20:00:43 UTC 2012
[aur-mirror.git] / glest / glest-xerces-c-3.patch
blob69eb498efe3d5f3bc00d87df133ace5affa8b82b
1 diff -wbBur source/shared_lib/sources/platform/posix/socket.cpp source2/shared_lib/sources/platform/posix/socket.cpp
2 --- source/shared_lib/sources/platform/posix/socket.cpp 2009-04-02 19:49:26.000000000 +0000
3 +++ source2/shared_lib/sources/platform/posix/socket.cpp 2009-09-08 15:30:52.000000000 +0000
4 @@ -5,6 +5,7 @@
5 //the terms of the GNU General Public License as published by the Free Software
6 //Foundation; either version 2 of the License, or (at your option) any later
7 //version.
8 +#include <stdio.h>
10 #include "socket.h"
12 diff -wbBur source/shared_lib/sources/xml/xml_parser.cpp source2/shared_lib/sources/xml/xml_parser.cpp
13 --- source/shared_lib/sources/xml/xml_parser.cpp 2009-02-11 00:58:44.000000000 +0000
14 +++ source2/shared_lib/sources/xml/xml_parser.cpp 2009-09-08 15:33:14.000000000 +0000
15 @@ -87,10 +87,10 @@
17 try{
18 ErrorHandler errorHandler;
19 - DOMBuilder *parser= (static_cast<DOMImplementationLS*>(implementation))->createDOMBuilder(DOMImplementationLS::MODE_SYNCHRONOUS, 0);
20 - parser->setErrorHandler(&errorHandler);
21 - parser->setFeature(XMLUni::fgXercesSchemaFullChecking, true);
22 - parser->setFeature(XMLUni::fgDOMValidation, true);
23 + DOMLSParser *parser = (static_cast<DOMImplementationLS*>(implementation))->createLSParser(DOMImplementationLS::MODE_SYNCHRONOUS, 0);
24 + DOMConfiguration *config = parser->getDomConfig();
25 + config->setParameter(XMLUni::fgXercesSchemaFullChecking, true);
26 + config->setParameter(XMLUni::fgDOMValidate, true);
27 DOMDocument *document= parser->parseURI(path.c_str());
29 if(document==NULL){
30 @@ -119,9 +119,14 @@
33 LocalFileFormatTarget file(path.c_str());
34 - DOMWriter* writer = implementation->createDOMWriter();
35 - writer->setFeature(XMLUni::fgDOMWRTFormatPrettyPrint, true);
36 - writer->writeNode(&file, *document);
37 + DOMLSSerializer *serializer = implementation->createLSSerializer();
38 + DOMLSOutput* output=implementation->createLSOutput();
39 + DOMConfiguration* config=serializer->getDomConfig();
40 + config->setParameter(XMLUni::fgDOMWRTFormatPrettyPrint,true);
41 + output->setByteStream(&file);
42 + serializer->write(document,output);
43 + output->release();
44 + serializer->release();
45 document->release();
47 catch(const DOMException &e){