On Sun, Nov 28, 2010 at 08:14:09PM -0500, Peter Davis wrote:
> I'm trying to write a fairly simple XML processor, and Expat seemed like
> a lightweight, cross-platform parser to base this on. However, I'm
> running into a problem with my UTF-16 encoded XML file, at least on
> Specifically, when I use the outline.c sample program, I get the kind of
> output I would expect. For example, my XSL-FO file gives me lines like:
> fo:root xlmns:fo='http://www.w3.org/1999/XSL/Format'
> However, if I modify this example to read from a file, instead of from
> stdin, then same file contents gives me:
> f x='h'
Argh! Apologies. My bad. I had neglected to modify the printf
statements to wprintf. Once I did, the output was what I had expected.
Sorry for the bonehead post.
The Tech Curmudgeon - http://www.techcurmudgeon.com
Ideas Great and Dumb - http://www.ideasgreatanddumb.com