From ashifig at hotmail.com Sat Feb 1 01:56:00 2003 From: ashifig at hotmail.com (Ashifi Gogo) Date: Sat Feb 1 04:56:49 2003 Subject: [Expat-discuss] Instaling expat Message-ID: Hi people, I've just got the expat library. Could you please tell me where I should stick it so that the system recognizes it? I'm running Mandrake Linux. Thank you. Ashifi http://www.ashifigogo.info _________________________________________________________________ The new MSN 8: advanced junk mail protection and 2 months FREE* http://join.msn.com/?page=features/junkmail From ashifig at hotmail.com Sat Feb 1 01:58:43 2003 From: ashifig at hotmail.com (Ashifi Gogo) Date: Sat Feb 1 05:01:29 2003 Subject: [Expat-discuss] Instaling expat Message-ID: Hi people, I've just got the expat library. Could you please tell me where I should stick it so that the system recognizes it? I'm running Mandrake Linux. Thank you. Ashifi http://www.ashifigogo.info _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus From fdrake at acm.org Sat Feb 1 11:04:52 2003 From: fdrake at acm.org (Fred L. Drake, Jr.) Date: Sat Feb 1 11:05:24 2003 Subject: [Expat-discuss] Installing expat In-Reply-To: References: Message-ID: <15931.61476.833625.922225@grendel.zope.com> Ashifi Gogo writes: > I'm trying to build Gnome 2 on my iBook and I have to install the > expat library. But I've got it and I can't figure out how to > install it / where to put it. Please help me out. Thanks. Ashifi Gogo writes: > I've just got the expat library. Could you please tell me where I should > stick it so that the system recognizes it? I'm running Mandrake Linux. The typical way to install Expat on Unix and Linux is to build from sources using "./configure; make", then install as the priviledged user using "make install". Is that not working for you? I'm not aware of what Gnome is expecting, and haven't used Mandrake for some time. I've never actually used Mac OS X. These may have specific expectations of the installation that go beyond the normal Expat installation. -Fred -- Fred L. Drake, Jr. PythonLabs at Zope Corporation From ron.13 at lycos.com Fri Feb 7 23:45:19 2003 From: ron.13 at lycos.com (ron taņeza) Date: Fri Feb 7 10:46:07 2003 Subject: [Expat-discuss] Question about "piece-wise" parsing Message-ID: Hi, I'm faily new to xml and expat. I think my question is better illustrated with an example. Suppose I have this XML stream: Can expat parse this stream if it was "cut-off" or "broken" at any point? Can I call XML_Parse with this data, Can expat handle this directly? If not, any suggestions on how to go about this? Thanks! _____________________________________________________________ Get 25MB, POP3, Spam Filtering with LYCOS MAIL PLUS for $19.95/year. http://login.mail.lycos.com/brandPage.shtml?pageId=plus&ref=lmtplus From karl at waclawek.net Fri Feb 7 15:43:17 2003 From: karl at waclawek.net (Karl Waclawek) Date: Fri Feb 7 15:43:31 2003 Subject: [Expat-discuss] Question about "piece-wise" parsing References: Message-ID: <000d01c2cee9$8b5b8d50$9e539696@citkwaclaww2k> > I'm faily new to xml and expat. I think my question is better illustrated with an example. Suppose I have this XML stream: > > > > > > > Can expat parse this stream if it was "cut-off" or "broken" at any point? Can I call XML_Parse with this data, > > > > > > > Can expat handle this directly? Yes. Karl From Hitesh_Malik at cpr.ca Thu Feb 20 16:10:43 2003 From: Hitesh_Malik at cpr.ca (Hitesh Malik) Date: Thu Feb 20 18:20:30 2003 Subject: [Expat-discuss] Running Expat on OS/2 Message-ID: <4B8C03F38DC96546BDFE17179204CDA601F20ACC@CALGARYMAIL01.cpr.ca> Hi, I need to run Expat on OS/2. My compiler is 16 bit Microsoft's C compiler. Can anyone explain mw how to do this?? Hitesh From Scott.Marienski at aig.com Fri Feb 21 10:43:42 2003 From: Scott.Marienski at aig.com (Marienski, Scott) Date: Fri Feb 21 10:44:18 2003 Subject: [Expat-discuss] Expat.dll is missing Message-ID: I am trying to install XML Parser and have already installed expat successfully. Yet I seem to have no Expat.dll and the XML Parser make complains. Any ideas? Thank you From karl at waclawek.net Fri Feb 21 10:55:54 2003 From: karl at waclawek.net (Karl Waclawek) Date: Fri Feb 21 10:54:07 2003 Subject: [Expat-discuss] Expat.dll is missing References: Message-ID: <003401c2d9c1$b756cdb0$0207a8c0@karl> > I am trying to install XML Parser and have already installed expat > successfully. Yet I seem to have no Expat.dll and the XML Parser make > complains. Any ideas? What do you mean with XML Parser? Which platform? Karl From karl at waclawek.net Fri Feb 21 11:03:32 2003 From: karl at waclawek.net (Karl Waclawek) Date: Fri Feb 21 11:02:19 2003 Subject: [Expat-discuss] Running Expat on OS/2 References: <4B8C03F38DC96546BDFE17179204CDA601F20ACC@CALGARYMAIL01.cpr.ca> Message-ID: <004501c2d9c2$c8833500$0207a8c0@karl> ----- Original Message ----- From: "Hitesh Malik" To: Sent: Thursday, February 20, 2003 6:10 PM Subject: [Expat-discuss] Running Expat on OS/2 Hi, I need to run Expat on OS/2. My compiler is 16 bit Microsoft's C compiler. Can anyone explain mw how to do this?? I don't think anyone on our team has done that. I am not even sure it would compile on a 16bit compiler at all. Feel free to try - and let us know what your results are. A google search on "OS/2 expat" might help. Karl From maximilian.schwerin at buelowssiege.de Fri Feb 21 18:26:30 2003 From: maximilian.schwerin at buelowssiege.de (Maximilian Schwerin) Date: Fri Feb 21 12:26:39 2003 Subject: [Expat-discuss] crosscompiling Message-ID: <5272798.1045848390461.JavaMail.sloface@strider.eurielec.etsit.upm.es> Hi all, I need to iniclude the expat parser in an app that is to run on a uLinux system on a motorola microcontroller. What would be the best way to compile and include the package? Thanx, maximilian -------------- next part -------------- ------------------------------------------------------------- All that is gold does not glitter, Not all those who wander are lost; The old that is strong does not wither, Deep roots are not reached by the frost. >From the ashes a fire shall be woken, A new light from the shadows shall spring; Renewed shall be the blade that was broken: The crownless again shall be king. ------------------------------------------------------------- Maximilian Schwerin PGP-Key: http://user.cs.tu-berlin.de/~maximili/pubkey.asc ------------------------------------------------------------- http://user.cs.tu-berlin.de/~maximili/spanien/ ------------------------------------------------------------- From villas at del.ufrj.br Mon Feb 24 08:54:54 2003 From: villas at del.ufrj.br (Sergio Barbosa Villas-Boas) Date: Mon Feb 24 06:54:50 2003 Subject: [Expat-discuss] how can I get the "value" ? Message-ID: Hi, all I'm learning expat. I'm trying to parse a simple xml file. Something like below. value I wrote a startElement function like the prototype below. void startElement(void *data, const XML_Char *el, const XML_Char **attr); I can get "attrib" and "attrib2" (and "oneData" and "oneData2") from the "attr" parameter. But how can I get the "value" ? Thanks in advance. --------------------------------------------------------- +------+ Sergio Barbosa Villas-Boas /------/| villas@del.ufrj.br | sbVB |/ http://www.del.ufrj.br/~villas +------+ ICQ: 15360729 From Ivan.Murashko at Arcadia.spb.ru Tue Feb 25 12:41:20 2003 From: Ivan.Murashko at Arcadia.spb.ru (Ivan Murashko) Date: Tue Feb 25 09:32:36 2003 Subject: [Expat-discuss] Processing of incorrect characters Message-ID: I process a big xml file (more than 1 Gb) by means of expat. This file contains erroneous character, for an example character with code 0x03. Parser returns XML_ERROR_INVALID_TOKEN error. Can I say to expat to ignore these characters? -- Best regards, Ivan (ipp@arcadia.spb.ru) From miallen at eskimo.com Tue Feb 25 16:09:03 2003 From: miallen at eskimo.com (Michael B. Allen) Date: Tue Feb 25 16:09:47 2003 Subject: [Expat-discuss] how can I get the "value" ? In-Reply-To: References: Message-ID: <20030225160903.56b761ce.miallen@eskimo.com> On Mon, 24 Feb 2003 08:54:54 -0300 "Sergio Barbosa Villas-Boas" wrote: > Hi, all > > I'm learning expat. > I'm trying to parse a simple xml file. Something like below. > > > value > > > I wrote a startElement function like the prototype below. > void startElement(void *data, const XML_Char *el, const XML_Char **attr); > > I can get "attrib" and "attrib2" (and "oneData" and "oneData2") from the > "attr" parameter. > But how can I get the "value" ? After startElement is called the function registered with XML_SetCharacterDataHandler will be called with the enclosed text. Then endElement or whatever end tag handler you registered will be called. See the examples and read the tutorial on xml.com. Mike -- A program should be written to model the concepts of the task it performs rather than the physical world or a process because this maximizes the potential for it to be applied to tasks that are conceptually similar and, more important, to tasks that have not yet been conceived. From miallen at eskimo.com Tue Feb 25 16:12:16 2003 From: miallen at eskimo.com (Michael B. Allen) Date: Tue Feb 25 16:11:26 2003 Subject: [Expat-discuss] Processing of incorrect characters In-Reply-To: References: Message-ID: <20030225161216.4f754bf5.miallen@eskimo.com> On Tue, 25 Feb 2003 12:41:20 +0300 Ivan Murashko wrote: > I process a big xml file (more than 1 Gb) by means of expat. This file > contains erroneous character, for an example character with code 0x03. > > Parser returns XML_ERROR_INVALID_TOKEN error. > > Can I say to expat to ignore these characters? I don't think so. Perhaps you can search for the invalid characters in the buffers passed to XML_ParseBuffer and convert them in-place to something benign. Mike -- A program should be written to model the concepts of the task it performs rather than the physical world or a process because this maximizes the potential for it to be applied to tasks that are conceptually similar and, more important, to tasks that have not yet been conceived. From dr at netscape.com Thu Feb 27 16:16:58 2003 From: dr at netscape.com (Dan Rosen) Date: Thu Feb 27 19:15:51 2003 Subject: [Expat-discuss] stability question Message-ID: <3E5EAA7A.9070509@netscape.com> Hi, I'm new on this mailing list, so apologies in advance if this question is frequently asked. I need XML parsing functionality in a product I'm working on, and expat seemed the obvious choice. However, I'm debating between which of two versions to use: the old 1.2 available from James Clark's site, or the new 1.95.6 from libexpat.org. Stability is a requirement for me, and I noticed some disclaimer saying that "odd-numbered minor versions should be considered beta-quality." However, I'm wondering whether to take the disclaimer with a grain of salt. My question is, which is *actually* more stable: 1.2 or 1.95.6? Thanks, Dan Rosen From r_ajith_kumar_1975 at yahoo.co.in Fri Feb 28 04:51:40 2003 From: r_ajith_kumar_1975 at yahoo.co.in (=?iso-8859-1?q?Ajith=20Kumar?=) Date: Thu Feb 27 23:51:47 2003 Subject: [Expat-discuss] UTF-16 Message-ID: <20030228045140.7580.qmail@web8203.mail.in.yahoo.com> hello, I have an UTF-16 XML file saved as UTF-16. My application in VC++ reads the file into a wchar_t* buffer(UNICODE, XML_UNICODE_WCHAR_T macros r defined). However the XML parser() fn takes a const char * ptr to the buffer. How can I supply my whcar_t* buffer to char * buffer. I tried typecasting, but the parsing failed. Any solutions? regards, ajith ________________________________________________________________________ Missed your favourite TV serial last night? Try the new, Yahoo! TV. visit http://in.tv.yahoo.com From karl at waclawek.net Fri Feb 28 00:15:35 2003 From: karl at waclawek.net (Karl Waclawek) Date: Fri Feb 28 00:13:22 2003 Subject: [Expat-discuss] stability question References: <3E5EAA7A.9070509@netscape.com> Message-ID: <001801c2dee8$6c902480$0207a8c0@karl> > I'm new on this mailing list, so apologies in advance if this question > is frequently asked. I need XML parsing functionality in a product I'm > working on, and expat seemed the obvious choice. However, I'm debating > between which of two versions to use: the old 1.2 available from James > Clark's site, or the new 1.95.6 from libexpat.org. > > Stability is a requirement for me, and I noticed some disclaimer saying > that "odd-numbered minor versions should be considered beta-quality." > However, I'm wondering whether to take the disclaimer with a grain of > salt. My question is, which is *actually* more stable: 1.2 or 1.95.6? I joined the Expat team shortly after 1.95.2 was released, and we have tried to make each release better than the previous one. I cannot confirm that odd version numbers are worse. I have never tried version 1.2, but others will hopefully report their experiences with it. Karl From karl at waclawek.net Fri Feb 28 00:17:16 2003 From: karl at waclawek.net (Karl Waclawek) Date: Fri Feb 28 00:15:04 2003 Subject: [Expat-discuss] UTF-16 References: <20030228045140.7580.qmail@web8203.mail.in.yahoo.com> Message-ID: <001e01c2dee8$a91ffce0$0207a8c0@karl> > hello, > I have an UTF-16 XML file saved as UTF-16. My > application in VC++ reads the file into a wchar_t* > buffer(UNICODE, XML_UNICODE_WCHAR_T macros r defined). > However the XML parser() fn takes a const char * ptr > to the buffer. How can I supply my whcar_t* buffer to > char * buffer. I tried typecasting, but the parsing > failed. Any solutions? It should work. Have a look at xmlwf.c for how it is done. Karl From v.cimino at resi.it Fri Feb 28 08:44:55 2003 From: v.cimino at resi.it (Vincenzo Cimino) Date: Fri Feb 28 07:48:13 2003 Subject: [Expat-discuss] stability question References: <3E5EAA7A.9070509@netscape.com> Message-ID: <005a01c2defd$4b851420$10cc09c0@ciminov> ----- Original Message ----- From: "Dan Rosen" To: Sent: Friday, February 28, 2003 1:16 AM Subject: [Expat-discuss] stability question I'm working with the new version 1.95.6 , I don't have problems of stability. I have one problem on CDATA section, but I had the same also in the previous version of expat. I don't understand because the parser analize the Section CDATA, shouldn't be ignored? > Hi, > > I'm new on this mailing list, so apologies in advance if this question > is frequently asked. I need XML parsing functionality in a product I'm > working on, and expat seemed the obvious choice. However, I'm debating > between which of two versions to use: the old 1.2 available from James > Clark's site, or the new 1.95.6 from libexpat.org. > > Stability is a requirement for me, and I noticed some disclaimer saying > that "odd-numbered minor versions should be considered beta-quality." > However, I'm wondering whether to take the disclaimer with a grain of > salt. My question is, which is *actually* more stable: 1.2 or 1.95.6? > > Thanks, > Dan Rosen > > > _______________________________________________ > Expat-discuss mailing list > Expat-discuss@libexpat.org > http://mail.libexpat.org/mailman/listinfo/expat-discuss From karl at waclawek.net Fri Feb 28 08:55:07 2003 From: karl at waclawek.net (Karl Waclawek) Date: Fri Feb 28 08:55:15 2003 Subject: [Expat-discuss] stability question References: <3E5EAA7A.9070509@netscape.com> <005a01c2defd$4b851420$10cc09c0@ciminov> Message-ID: <000701c2df31$00921380$9e539696@citkwaclaww2k> > I'm working with the new version 1.95.6 , I don't have > problems of stability. Good. ;-) > I have one problem on CDATA section, but I had the same also in the previous > version of expat. > I don't understand because the parser analize the Section CDATA, shouldn't > be ignored? I don't know of problems with CDATA sections. Could you give us more detail? Karl From v.cimino at resi.it Fri Feb 28 15:33:28 2003 From: v.cimino at resi.it (Vincenzo Cimino) Date: Fri Feb 28 09:39:02 2003 Subject: [Expat-discuss] CDATA problems References: <3E5EAA7A.9070509@netscape.com> <005a01c2defd$4b851420$10cc09c0@ciminov> <000701c2df31$00921380$9e539696@citkwaclaww2k> Message-ID: <009c01c2df36$603c2e60$10cc09c0@ciminov> ----- Original Message ----- From: "Karl Waclawek" To: "Vincenzo Cimino" ; Sent: Friday, February 28, 2003 2:55 PM Subject: Re: [Expat-discuss] stability question I have one problem on CDATA section. . I don't understand because the parser analize the Section CDATA, shouldn't be ignored? If I create a parser with enconding UTF-8, for analize Edit1.txt (see attachment), and in the inner of section CDATA there are some characters write no UTF-8 code, the parser fails.Why? -------------- next part -------------- 1.0 From karl at waclawek.net Fri Feb 28 10:07:46 2003 From: karl at waclawek.net (Karl Waclawek) Date: Fri Feb 28 10:08:07 2003 Subject: [Expat-discuss] Re: CDATA problems References: <3E5EAA7A.9070509@netscape.com> <005a01c2defd$4b851420$10cc09c0@ciminov> <000701c2df31$00921380$9e539696@citkwaclaww2k> <009c01c2df36$603c2e60$10cc09c0@ciminov> Message-ID: <002101c2df3b$27955dc0$9e539696@citkwaclaww2k> > I have one problem on CDATA section. . I don't understand because the parser > analize the Section CDATA, shouldn't be ignored? No, it should not be ignored. > If I create a parser with enconding UTF-8, for analize > Edit1.txt (see attachment), and in the inner of section CDATA there are some > characters write no UTF-8 code, > the parser fails.Why? All characters must be UTF-8 encoded, no exceptions. If you want to put arbitrary binary data into a CDATA section, then you must encode them. Base64 encoding generates output compatible with UTF-8. Karl