RE: Base64 Transformation

2003-12-02 Thread Milan Tomic
Erwin, > I am no C++ library expert, but if Base64 is thought to be > the problem, > could it have anything to do with one line being twice the > length of the > others. The Base64 encoding is trimmed at 76 characters, as > specified in > the spec (as optional), but one line seems to have a

Re: Base64 Transformation

2003-12-02 Thread Erwin van der Koogh
Just added something very simple - just create a sig with a single reference and a base64 txfm - to xtest and it works fine. Can you send us the full code that you are using to create the sig? I'm sending to you in the attachment one file. It doesn't work with templatesign.exe 1.0.0. (if you try t

Re: Base64 Transformation

2003-12-02 Thread Milan Tomic
Berin, > Just added something very simple - just create a sig with a single > reference and a base64 txfm - to xtest and it works fine. Can you send > us the full code that you are using to create the sig? I'm sending to you in the attachment one file. It doesn't work with templatesign.exe 1.0

RE: DOMNode to char*

2003-12-02 Thread Milan Tomic
> Have you tried the DOMDocument::setEncoding(XMLCh *) method? No, it doesn't work. :( Still, there is "UTF-16" string in the output. I'm creating DOMDocument like this: DOMDocument *theDOM; const XMLCh* encNameStr = XMLString::transcode("UTF-8"); XMLCh tempStr[100]; XMLString::transcode("Cor

Re: Base64 Transformation

2003-12-02 Thread Berin Lautenbach
Milan, Just added something very simple - just create a sig with a single reference and a base64 txfm - to xtest and it works fine. Can you send us the full code that you are using to create the sig? Cheers, Berin Milan Tomic wrote: When signing with enveloping signature I add Base

Re: DOMNode to char*

2003-12-02 Thread Berin Lautenbach
Hmm. Unexpected. Have you tried the DOMDocument::setEncoding(XMLCh *) method? Cheers, Berin Milan Tomic wrote: Berin, DOMWriter *dw = impl->createDOMWriter(); encNameStr = XMLString::transcode("UTF-8"); dw->setEncoding(encNameString); XMLCh* xcXML = dw->writeToString(*doc); char *cXML

RE: DOMNode to char*

2003-12-02 Thread Milan Tomic
Berin, > DOMWriter *dw = impl->createDOMWriter(); > encNameStr = XMLString::transcode("UTF-8"); > dw->setEncoding(encNameString); > XMLCh* xcXML = dw->writeToString(*doc); > char *cXML = XMLString::transcode(xcXML); > delete dw; > > Should work. I've just tried that and still there is:

Re: DOMNode to char*

2003-12-02 Thread Berin Lautenbach
Milan, The DOMWriter can actually be told directly to output UTF-16 (or any other known encoding) : DOMWriter *dw = impl->createDOMWriter(); encNameStr = XMLString::transcode("UTF-8"); dw->setEncoding(encNameString); XMLCh* xcXML = dw->writeToString(*doc); char *cXML = XMLString::transcode(xcXML

[c++] Special characters in file names

2003-12-02 Thread Milan Tomic
Title: [c++] Special characters in file names     I have difficulties when using special characters in file names (like "#"). Those letters are valid Windows filenames, but XSec libraries doesn't know how to handle it (Xerces works fine with them). This is an error message: "An error occure

RE: DOMNode to char*

2003-12-02 Thread Milan Tomic
Title: Message       That is exactly what I did. The only problem is that it took me about 2 minutes on my PC (P4 2.6 GHz, 512 MB RAM) to write 1,5 MB in ostringstream. So, I've done this:   DOMWriter *dw = impl->createDOMWriter();XMLCh* xcXML = dw->writeToString(*doc);char *cXML = XMLStri