Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@ services:

# matrix build
env:
- DOCKER_IMAGE=grzanka/cmssw_810:pre8 CMSSW_VER=CMSSW_8_1_0_pre8
- DOCKER_IMAGE=grzanka/cmssw_810:pre5 CMSSW_VER=CMSSW_8_1_0_pre5
- DOCKER_IMAGE=grzanka/cmssw_810:pre4 CMSSW_VER=CMSSW_8_1_0_pre4

# here we can define the sub-builds which can fail (and won't mark whole build as failed)
#matrix:
# allow_failures:
# - env: DOCKER_IMAGE=grzanka/cmssw_810:pre5 CMSSW_VER=CMSSW_8_1_0_pre5
matrix:
allow_failures:
- env: DOCKER_IMAGE=grzanka/cmssw_810:pre5 CMSSW_VER=CMSSW_8_1_0_pre5

language: bash

Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ migrated to newer version of CMSSW framework.
```
ssh -X $USER@lxplus
source /afs/cern.ch/cms/cmsset_default.sh
cmsrel CMSSW_8_1_0_pre5
git clone https://github.com/CTPPS/ctpps-offline.git CMSSW_8_1_0_pre5/src
cd CMSSW_8_1_0_pre5/src
cmsrel CMSSW_8_1_0_pre8
git clone https://github.com/CTPPS/ctpps-offline.git CMSSW_8_1_0_pre8/src
cd CMSSW_8_1_0_pre8/src
cmsenv
scram build -j 15
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include <xercesc/dom/DOM.hpp>
#include <xercesc/dom/DOMNodeList.hpp>
#include <xercesc/dom/DOMElement.hpp>
#include <xercesc/dom/DOMWriter.hpp>
#include <xercesc/dom/DOMImplementation.hpp>
#include <xercesc/dom/DOMImplementationLS.hpp>
#include <xercesc/util/XMLString.hpp>
Expand Down Expand Up @@ -105,13 +104,15 @@ class RPXMLConfig
// default filename
std::string fileName;
// parser
DOMBuilder * parser;
DOMLSParser * parser;
// document
DOMDocument * doc;
DOMDocument * doc;
// main node
DOMNode * mn;
DOMNode * mn;
// writer
DOMWriter * writer;
DOMLSSerializer * serializer;
//output
DOMLSOutput* outputDesc;

// Constants
XMLCh * id_string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,14 @@ RPXMLConfig::RPXMLConfig ()
DOMImplementationRegistry::getDOMImplementation (tempStr);
this->parser =
((DOMImplementationLS *) impl)->
createDOMBuilder (DOMImplementationLS::MODE_SYNCHRONOUS, 0);
this->writer = ((DOMImplementationLS *) impl)->createDOMWriter ();
createLSParser (DOMImplementationLS::MODE_SYNCHRONOUS, 0);

this->serializer = ((DOMImplementationLS *) impl)->createLSSerializer ();
DOMConfiguration* dc = this->serializer->getDomConfig();
dc->setParameter(XMLUni::fgDOMWRTFormatPrettyPrint, true);

this->outputDesc = ((DOMImplementationLS*)impl)->createLSOutput();

if (this->writer->canSetFeature (XMLUni::fgDOMWRTFormatPrettyPrint, true))
this->writer->setFeature (XMLUni::fgDOMWRTFormatPrettyPrint, true);

this->doc = 0;

Expand Down Expand Up @@ -68,7 +71,8 @@ void
RPXMLConfig::save (const std::string filename)
{
XMLFormatTarget *myForm = new StdOutFormatTarget ();
writer->writeNode (myForm, *doc);
outputDesc->setByteStream(myForm);
serializer->write(doc, outputDesc);
}

void
Expand Down