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
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
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
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());
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);
44 + serializer->release();
47 catch(const DOMException &e){