Skip to content

Commit

Permalink
refractor: changed variable names
Browse files Browse the repository at this point in the history
  • Loading branch information
jannikbusse committed Dec 5, 2023
1 parent aa9420f commit aba4480
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/utils/xmlParser.h
Original file line number Diff line number Diff line change
Expand Up @@ -676,21 +676,20 @@ int serialize(const char *outname)
{
DOMLSSerializer *domSerializer = impl->createLSSerializer();

DOMLSOutput *theOutputDesc = ((DOMImplementationLS *)impl)->createLSOutput();
XMLFormatTarget *myFormTarget = new LocalFileFormatTarget(XMLString::transcode(outname));
theOutputDesc->setByteStream(myFormTarget);
theOutputDesc->setEncoding(XMLString::transcode("ISO-8859-1"));
DOMLSOutput *outputDesc = ((DOMImplementationLS *)impl)->createLSOutput();
XMLFormatTarget *formTarget = new LocalFileFormatTarget(XMLString::transcode(outname));
outputDesc->setByteStream(formTarget);
outputDesc->setEncoding(XMLString::transcode("ISO-8859-1"));

domSerializer->getDomConfig()->setParameter(XMLUni::fgDOMXMLDeclaration, true);

domSerializer->getDomConfig()->setParameter(XMLUni::fgDOMWRTFormatPrettyPrint, true);
domSerializer->write(doc, theOutputDesc);
domSerializer->write(doc, outputDesc);

myFormTarget->flush();
formTarget->flush();

delete myFormTarget;
delete formTarget;

theOutputDesc->release();
outputDesc->release();
domSerializer->release();

doc->release();
Expand Down

0 comments on commit aba4480

Please sign in to comment.