The following code causes the STL std::string class to throw a
std::logic_error when I try to initialize a std::string with the results
of XMLString::transcode.

    std::string form_str = XMLString::transcode ( elem_ptr->getNodeValue() );

elem_ptr is a DOMElement*.

Is there an accepted way to convert to a std::string?

Stephen



Reply via email to