> I've tried to get started using xerces C++ several times, and hit the same

> stumbling block.  I do not understand the strings and how I am supposed to

> use them.

I think by not trying to wrap them. It just doesn't pay to transcode
everything because you *might* need to. I stick with XMLCh* until I need
8-bit strings and then I wrap them in a simple auto_ptr clone that does a
release() instead of a delete.

In the long run, it just works out to be less work than trying to wrap the
entire DOM, and much more efficient.

Note that at this time, most compilers again support basic_string<XMLCh> so
you can do string-class stuff without transcoding.

The problem is that's not actually legal C++ unless the C++ library you're
using is nice enough to provide some char_traits bits for you. MS does. g++
did, then stopped, then enough bitching ensued and they added it back around
3.4 or so.

The worst part of this is not having string literals, I freely admit.

Just my two cents. There is no pain-free answer here. If you really don't
care about performance, then wrapping may float your boat.

-- Scott


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to