From vinuwarrier at gmail.com Fri Aug 5 10:58:06 2005 From: vinuwarrier at gmail.com (Aneesh E Warrier) Date: Fri, 5 Aug 2005 14:28:06 +0530 Subject: [Expat-discuss] =?windows-1252?q?Problem_with_expat_1=2E95=2E8_li?= =?windows-1252?q?brary_built_with_switch_=91-fshort-wchar=92?= Message-ID: <795afe83050805015875a297d7@mail.gmail.com> Hi We are using object files built using the Makefile of the expat source version 1.95.8, on Sun Solaris 8 Sparc. We are using those object files to built customized static library which is having a support for UNICODE as well as 'wchar_t' & 'wstring'. The Makefile which is generated by configuration script contains '-fshort-wchar', if we are configuring the 'expat' with flag './configure CFLAGS="-g -O2 -fshort-wchar" CPPFLAGS=-DXML_UNICODE_WCHAR_T' . Generally, the xml file which provides an input to the 'expat' is having UTF8 encoding and we want support for wchar_t in 'expat'. As 'expat' is built with '-fshort-wchar', we need to make use of this switch in all the libraries and application dependent on 'expat' that also requires us to rebuild the built-in libraries of 'g++' like 'libstdc++.so' with the switch. Correct us if we are wrong. Is there any other way to make use of 'expat' with/without the switch in above situation? We are not sure about the behavior of 'expat' with non English wide characters as the wchar_t is going to be stored as short. Thank you, From icho at svsu.edu Mon Aug 8 21:28:13 2005 From: icho at svsu.edu (Il-Hyung Cho) Date: Mon, 08 Aug 2005 15:28:13 -0400 Subject: [Expat-discuss] Windows problem of loading LIBEXPAT.dll Message-ID: Hello, I am trying to run a simple perl script that needs libexpt.dll. The script just works fine if it runs in command line. Howeber, when I try to run it under cgi-bin, like http://localhost:8080/cgi-bin/ws/try.pl there comes an error with this message: "This application has failed to start because LIBEXPAT.dll was not found. Re-installing the application may fix this problem." My systems is WinXP, and runs Tomcat, and ActiveState perl. Here's the perl code. Any help would be appreciated. Il-Hyung =========== #!perl use warnings; use strict; use CGI qw(:standard); use SOAP::Lite; my $cgi = new CGI(); my %params=(); print ( header(), start_html("Access to Temparature Convert Service") ); my $temp = $cgi->param('celsius'); print SOAP::Lite -> uri('http://www.soaplite.com/Temperatures') -> proxy('http://services.soaplite.com/temper.cgi') -> c2f($temp) -> result; print ( end_html() ); From suzanne.crispin at sympatico.ca Mon Aug 8 21:44:16 2005 From: suzanne.crispin at sympatico.ca (Suzanne Crispin) Date: Mon, 8 Aug 2005 15:44:16 -0400 Subject: [Expat-discuss] More examples of Expat XML Parser written in C Message-ID: Hi, Is it possible to have more examples of Expat XML Parser written in C. Thanks, Suzanne Crispin Ville de Gatineau From opengeometry at yahoo.ca Tue Aug 9 16:22:44 2005 From: opengeometry at yahoo.ca (William Park) Date: Tue, 9 Aug 2005 10:22:44 -0400 Subject: [Expat-discuss] More examples of Expat XML Parser written in C In-Reply-To: <000601c59c51$950d0670$0a02a8c0@BOURGEOIS> References: <000601c59c51$950d0670$0a02a8c0@BOURGEOIS> Message-ID: <20050809142244.GA2604@node1.opengeometry.net> On Mon, Aug 08, 2005 at 03:44:16PM -0400, Suzanne Crispin wrote: > Hi, > > Is it possible to have more examples of Expat XML Parser written in C. Well, this is written in C: http://home.eol.ca/~parkw/index.html#expat but it's part of Bash shell. -- William Park , Toronto, Canada ThinFlash: Linux thin-client on USB key (flash) drive http://home.eol.ca/~parkw/thinflash.html BashDiff: Super Bash shell http://freshmeat.net/projects/bashdiff/ From tobias.beisel at gmx.de Mon Aug 15 13:54:33 2005 From: tobias.beisel at gmx.de (Tobias Beisel) Date: Mon, 15 Aug 2005 13:54:33 +0200 Subject: [Expat-discuss] Problems with EXPAT for Windows CE Message-ID: <000a01c5a190$1a7699f0$c14bea83@rudzio> Hi, I'm trying to use Windows CE ported EXPAT version of movsoftware (http://www.movsoftware.com/expatxml.htm). I have quite lot problems to compile and use it. When I open the project with "Visual C++" there are four projects (gennmtab, xmlparse, xmltok, xmlwf). Trying to compile those I got a whole lot of warnings: ------ Rebuild All started: Project: xmltok, Configuration: (WCE SH3) Debug Win32 ------ Deleting intermediate files and output files for project 'xmltok', configuration '(WCE SH3) Debug|Win32'. Compiling... xmltok.c xmltok.c(1111) : warning C4273: 'XmlUtf8Encode' : inconsistent dll linkage xmltok.c(1147) : warning C4273: 'XmlUtf16Encode' : inconsistent dll linkage xmltok.c(1172) : warning C4273: 'XmlSizeOfUnknownEncoding' : inconsistent dll linkage xmltok.c(1263) : warning C4273: 'XmlInitUnknownEncoding' : inconsistent dll linkage c:\Documents and Settings\Tobias Beisel\Desktop\expatCE-orginal\xmltok\xmltok_ns.c(2) : warning C4273: 'XmlGetUtf8InternalEncoding' : inconsistent dll linkage c:\Documents and Settings\Tobias Beisel\Desktop\expatCE-orginal\xmltok\xmltok_ns.c(7) : warning C4273: 'XmlGetUtf16InternalEncoding' : inconsistent dll linkage c:\Documents and Settings\Tobias Beisel\Desktop\expatCE-orginal\xmltok\xmltok_ns.c(44) : warning C4273: 'XmlInitEncoding' : inconsistent dll linkage c:\Documents and Settings\Tobias Beisel\Desktop\expatCE-orginal\xmltok\xmltok_ns.c(85) : warning C4273: 'XmlParseXmlDecl' : inconsistent dll linkage xmlrole.c xmlrole.c(1111) : warning C4273: 'XmlPrologStateInit' : inconsistent dll linkage dllmain.c Generating Code... Linking... Creating library .\WCESH3Dbg/xmltok.lib and object .\WCESH3Dbg/xmltok.exp Build log was saved at "file://c:\Documents and Settings\Tobias Beisel\Desktop\expatCE-orginal\xmltok\WCESH3Dbg\BuildLog.htm" xmltok - 0 error(s), 9 warning(s) ------ Rebuild All started: Project: xmlparse, Configuration: (WCE SH3) Debug Win32 ------ Deleting intermediate files and output files for project 'xmlparse', configuration '(WCE SH3) Debug|Win32'. Compiling... xmlparse.c xmlparse.c(410) : warning C4273: 'XML_ParserCreate' : inconsistent dll linkage xmlparse.c(483) : warning C4273: 'XML_ParserCreateNS' : inconsistent dll linkage xmlparse.c(512) : warning C4273: 'XML_SetEncoding' : inconsistent dll linkage xmlparse.c(526) : warning C4273: 'XML_ExternalEntityParserCreate' : inconsistent dll linkage xmlparse.c(595) : warning C4273: 'XML_ParserFree' : inconsistent dll linkage xmlparse.c(626) : warning C4273: 'XML_UseParserAsHandlerArg' : inconsistent dll linkage xmlparse.c(631) : warning C4273: 'XML_SetUserData' : inconsistent dll linkage xmlparse.c(639) : warning C4273: 'XML_SetBase' : inconsistent dll linkage xmlparse.c(652) : warning C4273: 'XML_GetBase' : inconsistent dll linkage xmlparse.c(657) : warning C4273: 'XML_GetSpecifiedAttributeCount' : inconsistent dll linkage xmlparse.c(664) : warning C4273: 'XML_SetElementHandler' : inconsistent dll linkage xmlparse.c(671) : warning C4273: 'XML_SetCharacterDataHandler' : inconsistent dll linkage xmlparse.c(677) : warning C4273: 'XML_SetProcessingInstructionHandler' : inconsistent dll linkage xmlparse.c(683) : warning C4273: 'XML_SetCommentHandler' : inconsistent dll linkage xmlparse.c(690) : warning C4273: 'XML_SetCdataSectionHandler' : inconsistent dll linkage xmlparse.c(697) : warning C4273: 'XML_SetDefaultHandler' : inconsistent dll linkage xmlparse.c(704) : warning C4273: 'XML_SetDefaultHandlerExpand' : inconsistent dll linkage xmlparse.c(711) : warning C4273: 'XML_SetUnparsedEntityDeclHandler' : inconsistent dll linkage xmlparse.c(717) : warning C4273: 'XML_SetNotationDeclHandler' : inconsistent dll linkage xmlparse.c(724) : warning C4273: 'XML_SetNamespaceDeclHandler' : inconsistent dll linkage xmlparse.c(731) : warning C4273: 'XML_SetNotStandaloneHandler' : inconsistent dll linkage xmlparse.c(737) : warning C4273: 'XML_SetExternalEntityRefHandler' : inconsistent dll linkage xmlparse.c(742) : warning C4273: 'XML_SetExternalEntityRefHandlerArg' : inconsistent dll linkage xmlparse.c(752) : warning C4273: 'XML_SetUnknownEncodingHandler' : inconsistent dll linkage xmlparse.c(758) : warning C4273: 'XML_Parse' : inconsistent dll linkage xmlparse.c(812) : warning C4273: 'XML_ParseBuffer' : inconsistent dll linkage xmlparse.c(831) : warning C4273: 'XML_GetBuffer' : inconsistent dll linkage xmlparse.c(866) : warning C4273: 'XML_GetErrorCode' : inconsistent dll linkage xmlparse.c(871) : warning C4273: 'XML_GetCurrentByteIndex' : inconsistent dll linkage xmlparse.c(878) : warning C4273: 'XML_GetCurrentByteCount' : inconsistent dll linkage xmlparse.c(885) : warning C4273: 'XML_GetCurrentLineNumber' : inconsistent dll linkage xmlparse.c(894) : warning C4273: 'XML_GetCurrentColumnNumber' : inconsistent dll linkage xmlparse.c(903) : warning C4273: 'XML_DefaultCurrent' : inconsistent dll linkage xmlparse.c(916) : warning C4273: 'XML_ErrorString' : inconsistent dll linkage hashtable.c Generating Code... Linking... Creating library .\WCESH3Dbg/xmlparse.lib and object .\WCESH3Dbg/xmlparse.exp Build log was saved at "file://c:\Documents and Settings\Tobias Beisel\Desktop\expatCE-orginal\xmlparse\WCESH3Dbg\BuildLog.htm" xmlparse - 0 error(s), 34 warning(s) ------ Rebuild All started: Project: gennmtab, Configuration: Debug Win32 ------ Deleting intermediate files and output files for project 'gennmtab', configuration 'Debug|Win32'. Compiling... gennmtab.c Linking... LINK : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification Build log was saved at "file://c:\Documents and Settings\Tobias Beisel\Desktop\expatCE-orginal\gennmtab\Debug\BuildLog.htm" gennmtab - 0 error(s), 1 warning(s) ------ Rebuild All started: Project: xmlwf, Configuration: Debug Win32 ------ Deleting intermediate files and output files for project 'xmlwf', configuration 'Debug|Win32'. Compiling... xmlwf.c c:\Documents and Settings\Tobias Beisel\Desktop\expatCE-orginal\xmlparse\xmlparse.h(41) : warning C4005: 'XMLPARSEAPI' : macro redefinition command-line arguments : see previous definition of 'XMLPARSEAPI' xmlfile.c c:\Documents and Settings\Tobias Beisel\Desktop\expatCE-orginal\xmlparse\xmlparse.h(41) : warning C4005: 'XMLPARSEAPI' : macro redefinition command-line arguments : see previous definition of 'XMLPARSEAPI' win32filemap.c codepage.c Linking... LINK : warning LNK4075: ignoring '/EDITANDCONTINUE' due to '/INCREMENTAL:NO' specification Build log was saved at "file://c:\Documents and Settings\Tobias Beisel\Desktop\expatCE-orginal\xmlwf\Debug\BuildLog.htm" xmlwf - 0 error(s), 3 warning(s) ---------------------- Done ---------------------- Rebuild All: 4 succeeded, 0 failed, 0 skipped Am I right to compile those sources with "Visual C++" using the dll-files for windows CE afterwards? After compiling it I got two dll-files (xmlparse.dll & xmltok.dll). Using the corresponding ".lib"-files in my "eMbedded Visual C++" project should make it possible to use a statement like: XML_Parser p = XML_ParserCreate(NULL); Shouldn't it? I included the ".lib"-files in "Project-> Settings -> Link-> Object/library modules" Unfortunately I get those error messages: Linking... parseLBS.obj : error LNK2019: unresolved external symbol __imp_XML_GetCurrentLineNumber referenced in function parseLBS parseLBS.obj : error LNK2019: unresolved external symbol __imp_XML_GetCurrentColumnNumber referenced in function parseLBS parseLBS.obj : error LNK2019: unresolved external symbol __imp_XML_ErrorString referenced in function parseLBS parseLBS.obj : error LNK2019: unresolved external symbol __imp_XML_GetErrorCode referenced in function parseLBS parseLBS.obj : error LNK2019: unresolved external symbol __imp_XML_Parse referenced in function parseLBS parseLBS.obj : error LNK2019: unresolved external symbol __imp_XML_SetStartElementHandler referenced in function parseLBS parseLBS.obj : error LNK2019: unresolved external symbol __imp_XML_UseParserAsHandlerArg referenced in function parseLBS parseLBS.obj : error LNK2019: unresolved external symbol __imp_XML_ParserCreate referenced in function parseLBS ARMV4Dbg/Client_CE.exe : fatal error LNK1120: 8 unresolved externals Error executing link.exe. Client_CE.exe - 9 error(s), 0 warning(s) Am I using the sources the right way or do I have to compile or use it differently? Thanks in advance. Greetings, Tobi. From vpmasru at gmail.com Tue Aug 16 15:50:42 2005 From: vpmasru at gmail.com (Masroor) Date: Tue, 16 Aug 2005 19:20:42 +0530 Subject: [Expat-discuss] problem with XMLParserFree( ) Message-ID: hello everybody, i am devoloping an application program on ucLinux (kernal version 1.4). I could successfully build the expat library by cross-compiling with arm-elf-gcc (version 2.95.3). the configuration file for my program is in XML format. When i am using a small config file (lessthan 10K), my application is working properly. But if the file is big, then my program is hanging when it is calling the XMLParserFree( ) function. can anybody please help me? thanks in advance masroor From david.fawcett at gmail.com Fri Aug 19 01:14:01 2005 From: david.fawcett at gmail.com (David Fawcett) Date: Thu, 18 Aug 2005 18:14:01 -0500 Subject: [Expat-discuss] Building Expat Message-ID: I am trying to build expat 1-95-8 on FC3, and I am pretty new to compiling... I un-tar'ed the file. Following the build directions, I cd to the folder holding the configure script and when I type ./configure, I get '[djf at localhost expat-1.95.8]$ ./configure : bad interpreter: No such file or directory' This is as a normal user. When I su to root, and try to run it like this, I get this message: [root at localhost expat-1.95.8]# . /home/djf/gpsbabel/expat/expat-1.95.8/configure: command not found bash: /home/djf/gpsbabel/expat/expat-1.95.8/configure: line 16: syntax error nea' unexpected token `in bash: /home/djf/gpsbabel/expat/expat-1.95.8/configure: line 16: ` case X$UNAME 'n Any help would be appreciated! David. From rpjday at mindspring.com Fri Aug 19 01:47:52 2005 From: rpjday at mindspring.com (Robert P. J. Day) Date: Thu, 18 Aug 2005 19:47:52 -0400 (EDT) Subject: [Expat-discuss] Building Expat In-Reply-To: References: Message-ID: On Thu, 18 Aug 2005, David Fawcett wrote: > I am trying to build expat 1-95-8 on FC3, and I am pretty new to > compiling... > > I un-tar'ed the file. > > Following the build directions, I cd to the folder holding the > configure script and when I type ./configure, I get '[djf at localhost > expat-1.95.8]$ ./configure : bad interpreter: No such file or > directory' > > This is as a normal user. > > When I su to root, and try to run it like this, I get this message: > [root at localhost expat-1.95.8]# . > /home/djf/gpsbabel/expat/expat-1.95.8/configure: command not found > bash: /home/djf/gpsbabel/expat/expat-1.95.8/configure: line 16: syntax > error nea' unexpected token `in > bash: /home/djf/gpsbabel/expat/expat-1.95.8/configure: line 16: ` > case X$UNAME 'n i just did a CVS checkout to get the latest version, ran: $ ./buildconf.sh $ ./configure $ make and everything seems to be going nicely so far. rday From david.fawcett at gmail.com Fri Aug 19 14:15:47 2005 From: david.fawcett at gmail.com (David Fawcett) Date: Fri, 19 Aug 2005 07:15:47 -0500 Subject: [Expat-discuss] Building Expat In-Reply-To: References: Message-ID: Robert's directions worked well for me. It took three tries to successfully download the source file from SourceForge, so I am wondering if the files were screwed up. When I downloaded from CVS and followed Robert's directions, it worked like a charm. Thanks again Robert. On 8/18/05, Robert P. J. Day wrote: > On Thu, 18 Aug 2005, David Fawcett wrote: > > > I am trying to build expat 1-95-8 on FC3, and I am pretty new to > > compiling... > > > > I un-tar'ed the file. > > > > Following the build directions, I cd to the folder holding the > > configure script and when I type ./configure, I get '[djf at localhost > > expat-1.95.8]$ ./configure : bad interpreter: No such file or > > directory' > > > > This is as a normal user. > > > > When I su to root, and try to run it like this, I get this message: > > [root at localhost expat-1.95.8]# . > > /home/djf/gpsbabel/expat/expat-1.95.8/configure: command not found > > bash: /home/djf/gpsbabel/expat/expat-1.95.8/configure: line 16: syntax > > error nea' unexpected token `in > > bash: /home/djf/gpsbabel/expat/expat-1.95.8/configure: line 16: ` > > case X$UNAME 'n > > i just did a CVS checkout to get the latest version, ran: > > $ ./buildconf.sh > $ ./configure > $ make > > and everything seems to be going nicely so far. > > rday > From marc.mongenet at gmail.com Sun Aug 21 00:09:52 2005 From: marc.mongenet at gmail.com (Marc Mongenet) Date: Sun, 21 Aug 2005 00:09:52 +0200 Subject: [Expat-discuss] xmlwf -c -d do not generates well-formed markup Message-ID: <468fa46d050820150935512e88@mail.gmail.com> Hello, if I run: xmlwf -c -d /tmp bug.xml with bug.xml containing: 123 the result is: é123 The start tag for e is lost and the entity ref in the attribute is copied. I use the stable Debian package: 1.95.8 Same result with expat compiled from sources. Marc Mongenet From karl at waclawek.net Mon Aug 22 05:25:34 2005 From: karl at waclawek.net (Karl Waclawek) Date: Sun, 21 Aug 2005 23:25:34 -0400 Subject: [Expat-discuss] xmlwf -c -d do not generates well-formed markup In-Reply-To: <468fa46d050820150935512e88@mail.gmail.com> References: <468fa46d050820150935512e88@mail.gmail.com> Message-ID: <430945AE.2090605@waclawek.net> Marc Mongenet wrote: >Hello, > >if I run: > xmlwf -c -d /tmp bug.xml > >with bug.xml containing: > > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > >123 > > >the result is: > > > "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> > >é123 > > >The start tag for e is lost and the entity ref in the attribute is copied. > > I can reproduce this issue. Please file a bug report. Karl From akumar at kodiaknetworks.com Thu Aug 25 07:11:59 2005 From: akumar at kodiaknetworks.com (Ajit Kumar) Date: Thu, 25 Aug 2005 10:41:59 +0530 Subject: [Expat-discuss] freeing the user data Message-ID: <000401c5a933$8710ab50$ac02a8c0@Ajit> I was trying to do the following- 1. I had one XML document I did some processing and stored the relevant information in the user data structure ( XML_SetUserData( parserobject, user data)). After that I freed the parser object but not the user data. 2. again I created another parser object and used the same user data structure in a loop. In each loop I am creating a new parser object (also freeing it) but the same user data structure. Now after the loop is done, I am trying to free the user data. Here where I am not being able to free the user data. Why is this problem occurring though I am allocating memory to user data only once and trying to free it also one time. Why I am not being able to free the user data? Regards Ajit