Hi Suzanne,

Yes, TranslateToLocalCodePage is what you'll want to use.  There is a
global std::ostream insert operator which does just that, which is why you
can insert a XalanDOMString into std:cout.

Dave



                                                                                       
                                                 
                      Suzanne Dirkers                                                  
                                                 
                      <[EMAIL PROTECTED]         To:      [EMAIL PROTECTED]       
                                                 
                      com>                     cc:      (bcc: David N 
Bertoni/Cambridge/IBM)                                            
                                               Subject: Re: basic stuff                
                                                 
                      02/19/2003 06:59                                                 
                                                 
                      AM                                                               
                                                 
                      Please respond                                                   
                                                 
                      to xalan-dev                                                     
                                                 
                                                                                       
                                                 







       I think perhaps the answer is TranslateToLocalCodePage, for the
second part of my question. I will have to try it out.

       Suzanne



                      Suzanne

                      Dirkers/Raleigh/I        To:
[EMAIL PROTECTED]
                      BM@IBMUS                 cc:

                                               Subject:  basic stuff

                      02/19/2003 09:21

                      AM

                      Please respond to

                      xalan-dev











Folks,

        Is there a User's Guide for Xalan anywhere? I tried looking at the
apidocs but many of them don't seem to say much of anything about their
functions.  It doesn't give me a clear idea of how you are supposed to use
them.   Are we supposed to glean everything we want to know mainly from the
samples?

          My question is, per the SimpleXPathAPI sample, why cout is able
to print out theResult->str() but if you try and pass the address of that
as a straight char* back to a calling program, printf does not come up with
the same result, but rather gibberish.  I don't seem to see any functions
for translating a XalanDOMString back to a char*, although there are ways
to translate char* into a XalanDOMString.    What is the magic way to
translate back from XalanDOMString to something you can printf ?

Thanks,
Suzanne






Reply via email to