Yeah that's true. Actually, when I got that class I converted it to use
conversion. Good point.
"Tom Serface" <tom.nospam@camaswood.com> ha scritto nel messaggio
news:961A5353-0EEB-402B-A25A-7F62460E63FF@microsoft.com...
You may want to take a look at this class. It's very small and only does
XML writing. Since you have the source you could easily add any extra
stuff you need it to do. Unfortunately, you will not get any syntax
checking like you would with something that used a schema or DTD file to
create the XML string, but for simple tasks that is not a big deal.
http://www.codeproject.com/KB/winsdk/XML_writer.aspx
Hi Tom,
it seems to me that that class only hanldes 'string' (i.e. char *), but
not Unicode (wchar_t *) text.
It may be sufficient for English speakers, but for other countries it is
not good.
In this thread, I posted a link to a code of mine, to handle also
automatic conversion from UTF-16 to UTF-8 (I tested that code opening the
created XML file with Internet Explorer, and visualizing some Italian
"stressed vocals" like: ? , ? , etc.)
...it may help the OP, too.
G