xerces-c-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From frofis <fro...@sdm.ru>
Subject Return of the carriage
Date Fri, 29 Sep 2006 13:14:11 GMT
do
{
DOMImplementation* impl = DOMImplementationRegistry::getDOMImplementation(0);
DOMDocument* doc = impl->createDocument(0, L"SigEnvelope", 0);
doc->setEncoding((WideString)"windows-1251");
DOMElement* root = doc->getDocumentElement();
LocalFileFormatTarget* pXMLfile;
DOMWriter* writer = ((DOMImplementationLS*)impl)->createDOMWriter();
pXMLfile = new LocalFileFormatTarget("c:\\1.xml");
writer->writeNode(pXMLfile, *doc);
doc->release();
delete pXMLfile;
writer->release();
}
receive
{
<?xml version="1.0" encoding="windows-1251" standalone="no" ?><SigEnvelope/>
}
want
{
<?xml version="1.0" encoding="windows-1251"?>
<SigEnvelope/>
}
add
{
DOMText* text = doc->createTextNode(L"\r\t");
root->appendChild(text);
DOMElement* elem = doc->createElement(L"SigContainer");
root->appendChild(elem);
}
receive
{
<?xml version="1.0" encoding="windows-1251" standalone="no" ?><SigEnvelope>
  <SigContainer/></SigEnvelope>
}
want
{
<?xml version="1.0" encoding="windows-1251" ?>
<SigEnvelope>
  <SigContainer/>
</SigEnvelope>
}
AS?


Mime
View raw message