Coker, Jonathan M wrote:
Another document creation question:  Is there a way to create a parsable
document from a standard c++ string (or char*)?  I have a string, not in
a file, not broken into a char array.  It is well formed XML and I would
lke to be able to use XPath to acces the information.  I have looked
through the different ways to create a document, including
XalanTransformer::parseSource, but have not seen the leap from a string
to an acceptable input source.  I thought XSLTInputSource might work but
I could not see what was needed for the public and system Id values.
Nudges in the right direction are appreciated.

Take a look at the StreamTransform sample. Basically, you can use any std::istream-derived class as input for the source tree or the stylesheet.

Dave

Reply via email to