From nick@integrasolv.com Tue Nov 7 19:09:19 2000 From: nick@integrasolv.com (Nick Lehman) Date: Tue, 7 Nov 2000 14:09:19 -0500 Subject: [Expat-discuss] utf-16 Message-ID: <001601c048ee$3dfed0e0$9d47e1d0@integrasolv.com> This is a multi-part message in MIME format. ---------------------- multipart/alternative attachment The version of expat at ftp.jclark.com let's you choose at compile = time the representation of wchar. Is this version going to support = this? I'd like to be able to have the routines that handle the sax = events passwd wchar_t* rather than char *. Nick ---------------------- multipart/alternative attachment An HTML attachment was scrubbed... URL: http://mail.libexpat.org/pipermail-21/expat-discuss/attachments/20001107/97481f2a/attachment.html ---------------------- multipart/alternative attachment-- From hwang@accuris.ie Tue Nov 14 18:00:53 2000 From: hwang@accuris.ie (Wang, Hai) Date: Tue, 14 Nov 2000 18:00:53 -0000 Subject: [Expat-discuss] Problem with Message-ID: Hell everybody, I am working with Expat for my project, but I got a problem when I wrote a XML application and ran it, the problem is that the compiler couldn't find the header included in the application although I had compiled the expat.dll in lib directory and put the directory (./lib) in the path. Here I am working with MSVC++ 6. If you have any suggestion or solution to the problem please write to me, I appreciate it. Cheers! Hai The log file I got is as follows: Command Lines Creating temporary file "C:\TEMP\RSPC2.tmp" with contents [ /nologo /MTd /W3 /GX /ZI /Od /D "_DEBUG" /D "COMPILED_FROM_DSP" /D "WIN32" /D "_WINDOWS" /D "_MBCS" /D "_USRDLL" /D "EXPAT_EXPORTS" /Fo"Debug/" /Fd"Debug/" /FD /GZ /c "E:\Program Files\expat-1.95.1\expatparser\expatparser.cpp" ] Creating command line "cl.exe @C:\TEMP\RSPC2.tmp" Creating temporary file "C:\TEMP\RSPC3.tmp" with contents [ kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /dll /incremental:yes /pdb:"Debug/expat.pdb" /debug /machine:I386 /out:"Debug/expat.dll" /implib:"Debug/expat.lib" /pdbtype:sept ".\Debug\xmlparse.obj" ".\Debug\xmlrole.obj" ".\Debug\xmltok.obj" ".\Debug\expatparser.obj" ] Creating command line "link.exe @C:\TEMP\RSPC3.tmp" Output Window Compiling... expatparser.cpp e:\program files\expat-1.95.1\expatparser\expatparser.cpp(5) : fatal error C1083: Cannot open include file: 'expat.h': No such file or directory Error executing cl.exe. Results expat.dll - 1 error(s), 0 warning(s) From ken@bitsko.slc.ut.us Wed Nov 15 19:51:17 2000 From: ken@bitsko.slc.ut.us (Ken MacLeod) Date: 15 Nov 2000 13:51:17 -0600 Subject: [Expat-discuss] Orchard/C preview includes expat binding Message-ID: Orchard is a free software project implementing generic data handling APIs for nodes of data, with [expected] support for using XML technologies like XPath, XSLT, and SOAP with, for, and against the data contained in the nodes, without having to go through a "layer" of or "interpretation" through XML. (This will be better presented through examples than description, but we don't have the examples available yet.) Orchard/C provides an node-based SAX parser using Expat, with bindings for Perl. Orchard/C's primary purpose is to provide C optimized implementations for the XML techniques as they'll be used in scripting languages (like Perl). (As such, it is not intented as a general purpose C development library, but that's a possible future development path.) Orchard is a brand new code base, but is based on several years of design history. This is just a preview release, with some components remaining to be implemented before going final, but the available components are very solid and come with a thorough test suite. The code is available at: . And some background and development information is available at: . In the source dir, Orchard/Perl is a pure Perl implementation of Orchard, Orchard/C is the C version that includes a Perl binding. -- Ken From beni_ler@hotmail.com Wed Nov 29 09:05:10 2000 From: beni_ler@hotmail.com (beni lerner) Date: Wed, 29 Nov 2000 11:05:10 +0200 Subject: [Expat-discuss] A bug in expat? CharacterData callback Message-ID: Hi everybody, I understood that when calling XML_parse I give the parser an xml buffer which should be parsed, and the parser uses my callback functions to give me the elements it found and the attributes and data of the elements. If I understood right, the parser gives me pointers to the same buffer I entered (that why they are const pointers). But when it finds a NEWLINE character, it does this: file: xmlparse.c function: doContent line: 1376 case XML_TOK_DATA_NEWLINE: if (characterDataHandler) { XML_Char c = 0xA; characterDataHandler(handlerArg, &c, 1); } else if (defaultHandler) reportDefault(parser, enc, s, next); break; This means that it gives me a pointer to a local character c, which is filled by 0xA. The memory of this character may be overridden by other variables! Is this correct? Please helllp me!!! Thanks. _____________________________________________________________________________________ Get more from the Web. FREE MSN Explorer download : http://explorer.msn.com