> Hello,
> I am a newbee to this list and Xalan for C++. Trying out the XPathAPI samples 
> I found it quite hard (in fact impossible) to get theResult of an XPath 
> evaluation handed over to a char variable when I want to work on with this.
> Is there a way to get the string-content out of the XObjectPtr or XObject or 
> const XalanDOMString ???
> I assumed this would work the following way in the sample SimpleXPathAPI, but 
> it doesn't:
> 
>                                       // OK, let's evaluate the expression...
>                                       const XObjectPtr        theResult(
>                                               theEvaluator.evaluate(
>                                                               theDOMSupport,
>                                                               theContextNode,
>                                                               
> XalanDOMString(xPathString).c_str(),
>                                                               
> theDocument->getDocumentElement()));
>                                       
>                                       assert(theResult.null() == false);
> 
>                                       cout << "The string value of the result 
> is:"
>                                                << endl
>                                                << theResult->str()    //at 
> this Point I have a XalanDOMString, but     char test = 
> (theResult->str()).c_str    is not possible
>                                                << endl;
> 
> Any comments or help would be highly appreciated.
> 
> Best, Ingo
> 
> 
> 

Reply via email to