XML Development

Moderators: None (Apply to moderate this forum)
Number of threads: 252
Number of posts: 451

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
parser will not parse Unicode(LPWSTR) buffer Posted by badfish2 on 25 Apr 2002 at 5:10 PM
(MSXML parser on windows 2000 using Visual C++ 6)

I have an XML document that I have tried parsing with every encoding
available to Notepad, and have come to the conclusion that I can only parse ANSI characters when I pass the document CONTENT into parsers. This doesn't apply when I pass in a filename, everything works as it should, but in this circumstance I can't do that. The only reason I can determine that it works only under ANSI is because when the file is encoded via Unicode there is a character at the beginning of the file that is there to denote Unicode encoding. that one character renders me inable to parse my CComBSTR or seemingly anything else I try to stick this string into the parser when I have this document's contents loaded into a CComBSTR.

Can someone please tell me the appropriate steps to load file contents from a Unicode-encoded XML document into a buffer and have the buffer's contents parsed?

Thanks!




To me programming is more than an important practical art. It is also a gigantic undertaking in the foundations of knowledge.

-Grace Hopper,inventor of the compiler



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.