From JWieman@daktronics.com Tue Sep 4 16:18:02 2001 From: JWieman@daktronics.com (Joe Wiemann) Date: Tue Sep 4 15:18:02 2001 Subject: [Expat-discuss] How can I add a function to skip a set number of bytes Message-ID: I see some of that particular thread on the list archives -- but I don't = think that is helping me out -- I feel I am missing part of it -- is there = a link to the top of that discussion so that I can follow the thread. >>> "Michael B. Allen" 08/30/01 01:24PM >>> Sorry if I lost track of the thread but did you participate in the recent XML_GetInputContext discussion? If not, maybe that's something you can use? Mike On Wed, Aug 29, 2001 at 01:40:27PM -0500, Joe Wiemann wrote: > But I cannot 100 percent guarantee that the closing tag won't appear within the text. so it would be better if I could just skip a set number of bytes in the parser buffer. >=20 > You don't want to "skip some bytes", you want to skip that tag and all > it's children? This is very simple to do with Expat. Look at the = outline.c --=20 Wow a memory-mapped fork bomb! Now what on earth did you expect? - lkml _______________________________________________ Expat-discuss mailing list Expat-discuss@lists.sourceforge.net=20 http://lists.sourceforge.net/lists/listinfo/expat-discuss From Michael_B_Allen@ml.com Tue Sep 4 16:26:04 2001 From: Michael_B_Allen@ml.com (Allen, Michael B (RSCH)) Date: Tue Sep 4 15:26:04 2001 Subject: [Expat-discuss] How can I add a function to skip a set number of bytes Message-ID: http://www.geocrawler.com/archives/3/6269/2001/8/0/ > -----Original Message----- > From: Joe Wiemann [SMTP:JWieman@daktronics.com] > > I see some of that particular thread on the list archives -- but I don't think that is helping me out -- I feel I am missing part of it -- is there a link to the top of that discussion so that I can > follow the thread. > From JWieman@daktronics.com Tue Sep 4 16:37:02 2001 From: JWieman@daktronics.com (Joe Wiemann) Date: Tue Sep 4 15:37:02 2001 Subject: [Expat-discuss] How can I add a function to skip a setnumber of bytes Message-ID: how can I adjust the ptr where the parser is parsing from -- ie, Move the = ptr ahead a certain number of bytes without having to parse through those = bytes with the parser. >>> "Allen, Michael B (RSCH)" 09/04/01 05:25PM = >>> http://www.geocrawler.com/archives/3/6269/2001/8/0/=20 > -----Original Message----- > From: Joe Wiemann [SMTP:JWieman@daktronics.com]=20 >=20 > I see some of that particular thread on the list archives -- but I don't = think that is helping me out -- I feel I am missing part of it -- is there = a link to the top of that discussion so that I can > follow the thread. >=20 _______________________________________________ Expat-discuss mailing list Expat-discuss@lists.sourceforge.net=20 https://lists.sourceforge.net/lists/listinfo/expat-discuss From dcrowley@scitegic.com Tue Sep 4 16:52:02 2001 From: dcrowley@scitegic.com (David Crowley) Date: Tue Sep 4 15:52:02 2001 Subject: [Expat-discuss] How can I add a function to skip a setnumber of bytes In-Reply-To: Message-ID: <5.1.0.14.0.20010904154903.02e0e7e0@pop.business.earthlink.net> At 03:33 PM 9/4/2001, Joe Wiemann wrote: >how can I adjust the ptr where the parser is parsing from -- ie, Move the >ptr ahead a certain number of bytes without having to parse through those >bytes with the parser. You had better be careful what you ask for, because you just might get it. What is your real requirement other than "skipping bytes?" Why do you want to tell the parser how to deal with the the raw bytes instead of letting the parser deal with bytes and you just don't do anything in the callbacks that correspond to those bytes?? Bytes is a bad thing to skip too. What happens when the document comes encoded in scheme such that 1 byte != 1 char? UTF-8, UTF-16, etc. come to mind... From jwieman@daktronics.com Tue Sep 4 19:00:02 2001 From: jwieman@daktronics.com (Joe Wiemann) Date: Tue Sep 4 18:00:02 2001 Subject: [Expat-discuss] How can I add a function to skip a setnumber of bytes References: <5.1.0.14.0.20010904154903.02e0e7e0@pop.business.earthlink.net> Message-ID: <002001c135a6$c7ab4c60$e4a6ddcc@400c> this is for an embedded system where I plan to embed graphics into my file format. I can tell how many bytes I need to skip by the tag that proceeds the graphic ex. here I skip 12 bytes XxXxXxXxXxXx the problem is that I can have the following in there too <>?? !^y so I really need to just skip so many bytes -- and encoding will not matter... it will still be skipping bytes in this case... I know this is not following XML -- but I think I can get it to work -> I do not want the overhead of doing mime encoding or anything like that. I want to skip the bytes and parse normally after that. ----- Original Message ----- From: "David Crowley" To: Sent: Tuesday, September 04, 2001 5:51 PM Subject: RE: [Expat-discuss] How can I add a function to skip a setnumber of bytes > At 03:33 PM 9/4/2001, Joe Wiemann wrote: > >how can I adjust the ptr where the parser is parsing from -- ie, Move the > >ptr ahead a certain number of bytes without having to parse through those > >bytes with the parser. > > > > You had better be careful what you ask for, because you just might get > it. What is your real requirement other than "skipping bytes?" Why do > you want to tell the parser how to deal with the the raw bytes instead of > letting the parser deal with bytes and you just don't do anything in the > callbacks that correspond to those bytes?? Bytes is a bad thing to skip > too. What happens when the document comes encoded in scheme such that 1 > byte != 1 char? UTF-8, UTF-16, etc. come to mind... > > > _______________________________________________ > Expat-discuss mailing list > Expat-discuss@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/expat-discuss From JWieman@daktronics.com Wed Sep 5 08:35:05 2001 From: JWieman@daktronics.com (Joe Wiemann) Date: Wed Sep 5 07:35:05 2001 Subject: [Expat-discuss] How can I add a function to skip a setnumber of bytes Message-ID: The requirement is to have embedded graphics in a xml type file format.. = this file format does not have to follow the exact rules of xml.. we just want the file format to be easy to follow and somewhat readable by = human eyes.... >>> "Joe Wiemann" 09/04/01 08:04PM >>> this is for an embedded system where I plan to embed graphics into my file format. I can tell how many bytes I need to skip by the tag that proceeds the graphic ex. here I skip 12 bytes XxXxXxXxXxXx the problem is that I can have the following in there too <>?? !^y so I really need to just skip so many bytes -- and encoding will not matter... it will still be skipping bytes in this case... I know this is not following XML -- but I think I can get it to work -> I = do not want the overhead of doing mime encoding or anything like that. I want to skip the bytes and parse normally after that. ----- Original Message ----- From: "David Crowley" To: Sent: Tuesday, September 04, 2001 5:51 PM Subject: RE: [Expat-discuss] How can I add a function to skip a setnumber = of bytes > At 03:33 PM 9/4/2001, Joe Wiemann wrote: > >how can I adjust the ptr where the parser is parsing from -- ie, Move the > >ptr ahead a certain number of bytes without having to parse through = those > >bytes with the parser. > > > > You had better be careful what you ask for, because you just might get > it. What is your real requirement other than "skipping bytes?" Why do > you want to tell the parser how to deal with the the raw bytes instead = of > letting the parser deal with bytes and you just don't do anything in the > callbacks that correspond to those bytes?? Bytes is a bad thing to skip > too. What happens when the document comes encoded in scheme such that 1 > byte !=3D 1 char? UTF-8, UTF-16, etc. come to mind... > > > _______________________________________________ > Expat-discuss mailing list > Expat-discuss@lists.sourceforge.net=20 > https://lists.sourceforge.net/lists/listinfo/expat-discuss=20 _______________________________________________ Expat-discuss mailing list Expat-discuss@lists.sourceforge.net=20 https://lists.sourceforge.net/lists/listinfo/expat-discuss From fdrake@acm.org Wed Sep 5 09:45:03 2001 From: fdrake@acm.org (Fred L. Drake, Jr.) Date: Wed Sep 5 08:45:03 2001 Subject: [Expat-discuss] How can I add a function to skip a setnumber of bytes In-Reply-To: References: Message-ID: <15254.18217.304925.807730@grendel.digicool.com> Joe Wiemann writes: > The requirement is to have embedded graphics in a xml type file > format.. this file format does not have to follow the exact rules > of xml.. > we just want the file format to be easy to follow and somewhat > readable by human eyes.... [from a different message...] > I know this is not following XML -- but I think I can get it to work -> I do > not want the overhead of doing mime encoding or anything like that. I'd suggest using some form of binary-to-text encoding anyway. It does not add enough overhead to make a real difference, and you should be able to write very efficient encoder/decoder functions. If you want, you could probably borrow code from Python. Take a look at the Modules/binascii.c file in the Python source distribution for basic encoding/decoding functions for uu-encoding, base64, and Mac hqx encoding. If you want something that isn't XML, I'd suggest using something that's obviously not XML so maintainers don't get confused down the road. Perhaps use a package format like a ZIP or JAR, and include your XML and images there, with references from the XML to the images. -Fred -- Fred L. Drake, Jr. PythonLabs at Zope Corporation From conte0@infinito.it Thu Sep 6 07:23:06 2001 From: conte0@infinito.it (Lorenzo) Date: Thu Sep 6 06:23:06 2001 Subject: [Expat-discuss] newbie question Message-ID: <00df01c136d7$d921bce0$30000014@devel2> Hi, everybody I'm newbie i download expat_win32 and i try to use library,i would want to know how can i create a file xml and insert a node into and save the file. Please help me ---------------------------------------------------------------------------- --- If debugging is the process of removing bugs, then programming must be the process of putting them in. ---------------------------------------------------------------------------- --- From abeylin@yahoo.com Thu Sep 6 07:37:03 2001 From: abeylin@yahoo.com (Alex Beylin) Date: Thu Sep 6 06:37:03 2001 Subject: [Expat-discuss] What are the changes between version 1.1 and 1.95.2 Message-ID: <20010906133623.92799.qmail@web13302.mail.yahoo.com> Hello, Could someone please point me to the document of all the changes from the Expat version 1.1 to 1.95.2. Our company currently uses Expat version 1.1, and we want to know if (and why) we should move to the latest version of Expat. Thank you. Alex __________________________________________________ Do You Yahoo!? Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger http://im.yahoo.com From fdrake@acm.org Thu Sep 6 07:52:07 2001 From: fdrake@acm.org (Fred L. Drake, Jr.) Date: Thu Sep 6 06:52:07 2001 Subject: [Expat-discuss] newbie question In-Reply-To: <00df01c136d7$d921bce0$30000014@devel2> References: <00df01c136d7$d921bce0$30000014@devel2> Message-ID: <15255.32328.142494.4829@grendel.digicool.com> Lorenzo writes: > I'm newbie i download expat_win32 and i try to use library,i would want to > know how can i create a file xml and insert a node into and save the file. Expat is not an XML editor; I'm afraid you'll need to look elsewhere for that. Expat is a library for developers to use in building applications which use XML. I don't normally use Windows much, so I can't make any specific recommendations, you could try www.xml.com; I think they have a product guide online. -Fred -- Fred L. Drake, Jr. PythonLabs at Zope Corporation From fdrake@acm.org Thu Sep 6 07:56:04 2001 From: fdrake@acm.org (Fred L. Drake, Jr.) Date: Thu Sep 6 06:56:04 2001 Subject: [Expat-discuss] What are the changes between version 1.1 and 1.95.2 In-Reply-To: <20010906133623.92799.qmail@web13302.mail.yahoo.com> References: <20010906133623.92799.qmail@web13302.mail.yahoo.com> Message-ID: <15255.32537.788447.610581@grendel.digicool.com> Alex Beylin writes: > Could someone please point me to the document of all > the changes from the Expat version 1.1 to 1.95.2. I have a document like this on my "to do" list, but have not had time to work on it yet. > Our company currently uses Expat version 1.1, and we > want to know if (and why) we should move to the latest > version of Expat. A few bugs have been fixed (more to come in 1.95.3), and additional interfaces have been added. I think all the callbacks that report DTD information are new since 1.1; these were added by Clark Cooper for the XML::Parser::Expat Perl module. I'll send a note to this list when I have a "new features" document ready. -Fred -- Fred L. Drake, Jr. PythonLabs at Zope Corporation From abeylin@yahoo.com Thu Sep 6 08:50:07 2001 From: abeylin@yahoo.com (Alex Beylin) Date: Thu Sep 6 07:50:07 2001 Subject: [Expat-discuss] newbie question In-Reply-To: <15255.32328.142494.4829@grendel.digicool.com> Message-ID: <20010906144936.42979.qmail@web13308.mail.yahoo.com> You can get an XML Notepad from Microsoft, here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnxml/html/xmlpaddownload.asp Using it you can create or view XML documents. The program validates the document against it's DTD during the open of document. But when you are modifying and saving the document there is no validation. If there is a problem(s) in your document, the program will show the first problem, and not let you open the document. (I have sent similar message before using "reply", not "reply all" - so the list didn't get it, I am sorry if you are getting the same message again.) Alex --- "Fred L. Drake, Jr." wrote: > > Lorenzo writes: > > I'm newbie i download expat_win32 and i try to > use library,i would want to > > know how can i create a file xml and insert a > node into and save the file. > > Expat is not an XML editor; I'm afraid you'll need > to look elsewhere > for that. Expat is a library for developers to use > in building > applications which use XML. > I don't normally use Windows much, so I can't make > any specific > recommendations, you could try www.xml.com; I think > they have a > product guide online. > > > -Fred > > -- > Fred L. Drake, Jr. > PythonLabs at Zope Corporation > > > _______________________________________________ > Expat-discuss mailing list > Expat-discuss@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/expat-discuss __________________________________________________ Do You Yahoo!? Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger http://im.yahoo.com From abeylin@yahoo.com Thu Sep 6 08:50:07 2001 From: abeylin@yahoo.com (Alex Beylin) Date: Thu Sep 6 07:50:07 2001 Subject: [Expat-discuss] newbie question In-Reply-To: <15255.32328.142494.4829@grendel.digicool.com> Message-ID: <20010906144936.42979.qmail@web13308.mail.yahoo.com> You can get an XML Notepad from Microsoft, here: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnxml/html/xmlpaddownload.asp Using it you can create or view XML documents. The program validates the document against it's DTD during the open of document. But when you are modifying and saving the document there is no validation. If there is a problem(s) in your document, the program will show the first problem, and not let you open the document. (I have sent similar message before using "reply", not "reply all" - so the list didn't get it, I am sorry if you are getting the same message again.) Alex --- "Fred L. Drake, Jr." wrote: > > Lorenzo writes: > > I'm newbie i download expat_win32 and i try to > use library,i would want to > > know how can i create a file xml and insert a > node into and save the file. > > Expat is not an XML editor; I'm afraid you'll need > to look elsewhere > for that. Expat is a library for developers to use > in building > applications which use XML. > I don't normally use Windows much, so I can't make > any specific > recommendations, you could try www.xml.com; I think > they have a > product guide online. > > > -Fred > > -- > Fred L. Drake, Jr. > PythonLabs at Zope Corporation > > > _______________________________________________ > Expat-discuss mailing list > Expat-discuss@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/expat-discuss __________________________________________________ Do You Yahoo!? Get email alerts & NEW webcam video instant messaging with Yahoo! Messenger http://im.yahoo.com From conte0@infinito.it Thu Sep 6 09:12:02 2001 From: conte0@infinito.it (Lorenzo) Date: Thu Sep 6 08:12:02 2001 Subject: [Expat-discuss] newbie question Message-ID: <017b01c136e7$0e89ed30$30000014@devel2> #include int main(int argc, char **argv) { XML_Parser parser = XML_ParserCreate(NULL); /* which instructions i have to use here*/ XML_ParserFree(parser); return 0; } For reading and writing file i can use standard io c function, but for getting and putting node which functions i have to use? thanks for the interest ---------------------------------------------------------------------------- --- If debugging is the process of removing bugs, then programming must be the process of putting them in. ---------------------------------------------------------------------------- --- From carlos@pehoe.civil.ist.utl.pt Thu Sep 6 11:39:08 2001 From: carlos@pehoe.civil.ist.utl.pt (Carlos Pereira) Date: Thu Sep 6 10:39:08 2001 Subject: [Expat-discuss] expat compilation Message-ID: <200109061741.SAA31305@pehoe.civil.ist.utl.pt> Hi there, I sucessfully compiled expat-1.2, expat-1.95.0 and expat-1.95.1 on my Intel-based system running GNU/Linux Red Hat 5.2, with the usual ./configure, make, make install method. However, when I try the same with expat-1.95.2 I get the error below, during compilation. Disabling the -fexceptions on lib/Makefile and xmlwf/Makefile doesn't help either. What should I try? Thanks! Carlos make[1]: Entering directory `/tmp/expat-1.95.2/lib' /bin/sh ../libtool --mode=compile gcc -DHAVE_CONFIG_H -DPACKAGE='"expat"' -DVERSION='"expat_1.95.2"' -I. -I. -I.. -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -c xmlparse.c mkdir .libs gcc -DHAVE_CONFIG_H -DPACKAGE=\"expat\" -DVERSION=\"expat_1.95.2\" -I. -I. -I.. -g -O2 -Wall -Wmissing-prototypes -Wstrict-prototypes -fexceptions -c xmlparse.c -fPIC -DPIC -o .libs/xmlparse.lo cc1: Invalid option `-fexceptions' xmlparse.c: In function `XML_GetBuffer': xmlparse.c:1178: `punting' undeclared (first use this function) xmlparse.c:1178: (Each undeclared identifier is reported only once xmlparse.c:1178: for each function it appears in.) xmlparse.c:1178: parse error before `on' make[1]: *** [xmlparse.lo] Error 1 make[1]: Leaving directory `/tmp/expat-1.95.2/lib' make: *** [lib] Error 2 From kfox@vulpes.com Thu Sep 6 12:57:03 2001 From: kfox@vulpes.com (Ken Fox) Date: Thu Sep 6 11:57:03 2001 Subject: [Expat-discuss] newbie question References: <017b01c136e7$0e89ed30$30000014@devel2> Message-ID: <3B97C8CE.8C1E2DEC@vulpes.com> Lorenzo wrote: > For reading and writing file i can use standard io c function, > but for getting and putting node which functions i have to use? Expat is a stream parser -- it doesn't build any in-memory tree structure so there aren't any functions for adding nodes. It sounds like you want a DOM. - Ken From Michael_B_Allen@ml.com Thu Sep 6 14:07:02 2001 From: Michael_B_Allen@ml.com (Allen, Michael B (RSCH)) Date: Thu Sep 6 13:07:02 2001 Subject: [Expat-discuss] newbie question Message-ID: This is trivial with DOMC but I have never compiled it on windows. See: http://auditorymodels.org/domc/ > -----Original Message----- > From: Lorenzo [SMTP:conte0@infinito.it] > Sent: Thursday, September 06, 2001 9:29 AM > To: expat-discuss@lists.sourceforge.net > Subject: [Expat-discuss] newbie question > > Hi, everybody > I'm newbie i download expat_win32 and i try to use library,i would want to > know how can i create a file xml and insert a node into and save the file. > > Please help me > ---------------------------------------------------------------------------- > --- > If debugging is the process of removing bugs, > then programming must be the process of putting them in. > ---------------------------------------------------------------------------- > --- > > > > _______________________________________________ > Expat-discuss mailing list > Expat-discuss@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/expat-discuss From SheelR@aol.com Thu Sep 6 22:38:01 2001 From: SheelR@aol.com (SheelR@aol.com) Date: Thu Sep 6 21:38:01 2001 Subject: [Expat-discuss] read and write into an C++ stream Message-ID: <93.fe76dd4.28c9a8fe@aol.com> Folks, Do you know any C++ objects to XML serializer similar to SXP (Simple XML Persistence). The problem with SXP is that it ONLY reads and writes XML to files. Thanks in advance ~SR From conte0@infinito.it Fri Sep 7 01:28:04 2001 From: conte0@infinito.it (Lorenzo) Date: Fri Sep 7 00:28:04 2001 Subject: [Expat-discuss] Re: Re: newbie question Message-ID: <007201c1376f$619aff90$30000014@devel2> Thanks to everyone ---------------------------------------------------------------------------- --- If debugging is the process of removing bugs, then programming must be the process of putting them in. ---------------------------------------------------------------------------- --- From SANJAY_GUPTA@infy.com Fri Sep 7 02:27:02 2001 From: SANJAY_GUPTA@infy.com (SANJAY_GUPTA) Date: Fri Sep 7 01:27:02 2001 Subject: [Expat-discuss] Is Expat library thread safe Message-ID: <56E2573C375A414191118970BDE06A15BA9E33@kecmsg06.ad.infosys.com> Hi, I am new to Expat and this mailing list. Could someone please tell me whether Expat library is thread safe. I didn't see any synchronization mechanism anywhere and didn't get much chance to go through the code to see data/variable sharing. Regards,=20 Sanjay From carlos@pehoe.civil.ist.utl.pt Fri Sep 7 07:22:03 2001 From: carlos@pehoe.civil.ist.utl.pt (Carlos Pereira) Date: Fri Sep 7 06:22:03 2001 Subject: [Expat-discuss] Re: expat compilation Message-ID: <200109071327.OAA02116@pehoe.civil.ist.utl.pt> Hi there, expat-1.95.2 is now compiling well on my (admitedly 3-years old) Linux system. This is what I did: 1) on config.h, replaced the line: /* #undef HAVE_MEMMOVE */ by: #define HAVE_MEMMOVE 1 (basically config didn't find my memmove) 2) Removed the -fexceptions gcc option on lib/Makefile and xmlwf/Makefile. (a new gcc option, I guess) Carlos >I sucessfully compiled expat-1.2, expat-1.95.0 and expat-1.95.1 >on my Intel-based system running GNU/Linux Red Hat 5.2, with >the usual ./configure, make, make install method. >However, when I try the same with expat-1.95.2 I get >the error below, during compilation. Disabling >the -fexceptions on lib/Makefile and xmlwf/Makefile >doesn't help either. From rsalz@zolera.com Fri Sep 7 07:47:02 2001 From: rsalz@zolera.com (Rich Salz) Date: Fri Sep 7 06:47:02 2001 Subject: [Expat-discuss] Is Expat library thread safe References: <56E2573C375A414191118970BDE06A15BA9E33@kecmsg06.ad.infosys.com> Message-ID: <3B98CFC3.A9E88C3@zolera.com> > Could someone please tell me whether Expat > library is thread safe. > I didn't see any synchronization mechanism anywhere > and didn't get much chance to go through the code to see > data/variable sharing. Expat's model is that you create a "parser" object, and all the state is maintained in that parser. So the expat code itself is safe. If you want to share parsers across threads you'll have to write your own synchronization stuff. /r$ -- Zolera Systems, Your Key to Online Integrity Securing Web services: XML, SOAP, Dig-sig, Encryption http://www.zolera.com From gerry_shaw@yahoo.com Sun Sep 9 00:15:02 2001 From: gerry_shaw@yahoo.com (Gerry Shaw) Date: Sat Sep 8 23:15:02 2001 Subject: [Expat-discuss] simple bug useful expat sample program Message-ID: <000401c138f6$d401e9d0$d93c35d1@shaw> This is a multi-part message in MIME format. ---------------------- multipart/mixed attachment Attached are the files to a very simple DOM *like* parser for expat. I use XML for reading config files for pretty much every program I write that needs one but I often don't need the bloat that comes with a standard W3C DOM. It's tested using expat 1.2 but I can't see how any changes would be needed unless you changed the API. I'm not on the mailing list so email directly if you have comments. ---------------------- multipart/mixed attachment A non-text attachment was scrubbed... Name: xmldom.cpp Type: application/octet-stream Size: 4907 bytes Desc: not available Url : http://mail.libexpat.org/pipermail-21/expat-discuss/attachments/20010908/0d8a4c8f/xmldom.exe ---------------------- multipart/mixed attachment A non-text attachment was scrubbed... Name: xmldom.hpp Type: application/octet-stream Size: 4495 bytes Desc: not available Url : http://mail.libexpat.org/pipermail-21/expat-discuss/attachments/20010908/0d8a4c8f/xmldom-0001.exe ---------------------- multipart/mixed attachment-- _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com From Michael_B_Allen@ml.com Sun Sep 9 13:42:02 2001 From: Michael_B_Allen@ml.com (Allen, Michael B (RSCH)) Date: Sun Sep 9 12:42:02 2001 Subject: [Expat-discuss] Is Expat library thread safe Message-ID: There was just a big discussion about this. The answer is sort of. See the mailing list archive. > -----Original Message----- > From: SANJAY_GUPTA [SMTP:SANJAY_GUPTA@infy.com] > Sent: Friday, September 07, 2001 4:23 AM > To: expat-discuss@lists.sourceforge.net > Subject: [Expat-discuss] Is Expat library thread safe > > Hi, > > I am new to Expat and this mailing list. > > Could someone please tell me whether Expat > library is thread safe. > I didn't see any synchronization mechanism anywhere > and didn't get much chance to go through the code to see > data/variable sharing. > > Regards, > Sanjay > > > > > _______________________________________________ > Expat-discuss mailing list > Expat-discuss@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/expat-discuss From Michael_B_Allen@ml.com Sun Sep 9 14:19:04 2001 From: Michael_B_Allen@ml.com (Allen, Michael B (RSCH)) Date: Sun Sep 9 13:19:04 2001 Subject: [Expat-discuss] simple bug useful expat sample program Message-ID: > -----Original Message----- > From: Gerry Shaw [SMTP:gerry_shaw@yahoo.com] > Sent: Sunday, September 09, 2001 2:15 AM > To: expat-discuss@lists.sourceforge.net > Subject: [Expat-discuss] simple bug useful expat sample program > > Attached are the files to a very simple DOM *like* parser for expat. I > use XML for reading config files for pretty much every program I write > that needs one but I often don't need the bloat that comes with a > standard W3C DOM. > Well, it's not bloat in the context it was designed for (I don't think :). And the DOMC library is < 2000 lines of code including Events. I don't think it would pass as W3C compliant either although it's really close. But! This is a great little piece of code Gerry. If I were to need a C++ config file, this would be what I would use. It's very simple and small almost to the point of being trivial. That makes it better IMO. It's very rare to find this sort of thing. Do you have anything more substantial that's Open? Mike From JWieman@daktronics.com Wed Sep 19 10:03:07 2001 From: JWieman@daktronics.com (Joe Wiemann) Date: Wed Sep 19 09:03:07 2001 Subject: [Expat-discuss] How can I parse multiple xml formatted buffers using the sameparser Message-ID: How can I parse multiple xml formatted buffers using the same parser? I = am developing on an embedded system where memory is a huge issue. and I = don't want to allocate and deallocate parsers as I want to avoid memory = fragmentation problems. From duncan.palmer@s3group.com Wed Sep 19 10:37:02 2001 From: duncan.palmer@s3group.com (Duncan Palmer) Date: Wed Sep 19 09:37:02 2001 Subject: [Expat-discuss] How can I parse multiple xml formatted buffers usingthe sameparser References: Message-ID: <3BA8C985.6C83FA56@s3group.com> The standard versions of expat don't allow this, but someone posted a patch a few weeks back to add a function called XML_ParserReset() which sounded like what you're after - will be in the archives... Joe Wiemann wrote: > > How can I parse multiple xml formatted buffers using the same parser? I am developing on an embedded system where memory is a huge issue. and I don't want to allocate and deallocate parsers as I want to avoid memory fragmentation problems. > > _______________________________________________ > Expat-discuss mailing list > Expat-discuss@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/expat-discuss -- Duncan Palmer duncan.palmer@s3group.com Software Design Engineer Phone: +353-1-2911561 Silicon and Software Systems Fax: +353-1-2911001 From JWieman@daktronics.com Wed Sep 19 12:16:03 2001 From: JWieman@daktronics.com (Joe Wiemann) Date: Wed Sep 19 11:16:03 2001 Subject: [Expat-discuss] How can I parse multiple xml formatted buffersusingthe sameparser Message-ID: how can I get the code for this function -- I found where they talk about = -- but I cannot get the code anywhere.. >>> Duncan Palmer 09/19/01 11:36AM >>> The standard versions of expat don't allow this, but someone posted a patch a few weeks back to add a function called XML_ParserReset() which sounded like what you're after - will be in the archives... Joe Wiemann wrote: >=20 > How can I parse multiple xml formatted buffers using the same parser? I = am developing on an embedded system where memory is a huge issue. and I = don't want to allocate and deallocate parsers as I want to avoid memory = fragmentation problems. >=20 > _______________________________________________ > Expat-discuss mailing list > Expat-discuss@lists.sourceforge.net=20 > https://lists.sourceforge.net/lists/listinfo/expat-discuss=20 --=20 Duncan Palmer =20 duncan.palmer@s3group.com=20 Software Design Engineer Phone: =20 +353-1-2911561 Silicon and Software Systems Fax: =20 +353-1-2911001 _______________________________________________ Expat-discuss mailing list Expat-discuss@lists.sourceforge.net=20 https://lists.sourceforge.net/lists/listinfo/expat-discuss From dcrowley@scitegic.com Wed Sep 19 13:18:20 2001 From: dcrowley@scitegic.com (David Crowley) Date: Wed Sep 19 12:18:20 2001 Subject: [Expat-discuss] How can I parse multiple xml formatted buffersusingthe sameparser In-Reply-To: Message-ID: <5.1.0.14.0.20010919121254.02cef100@pop.business.earthlink.net> At 11:12 AM 9/19/2001, Joe Wiemann wrote: >how can I get the code for this function -- I found where they talk about >-- but I cannot get the code anywhere.. The diff to xmlparse.h is posted here: http://sourceforge.net/tracker/index.php?func=detail&aid=450608&group_id=10127&atid=310127 Also in the message is a bit on what you need to add to expat.h. What I posted works for me, but I know it still has problems. Particularly there may very well be leaks if the documents you parse have DTDs and such. So please, use at your own risk.... David From fdrake@acm.org Wed Sep 19 20:38:02 2001 From: fdrake@acm.org (Fred L. Drake, Jr.) Date: Wed Sep 19 19:38:02 2001 Subject: [Expat-discuss] How can I parse multiple xml formatted buffersusingthe sameparser In-Reply-To: <5.1.0.14.0.20010919121254.02cef100@pop.business.earthlink.net> References: <5.1.0.14.0.20010919121254.02cef100@pop.business.earthlink.net> Message-ID: <15273.21646.1720.233512@grendel.digicool.com> David Crowley writes: > Also in the message is a bit on what you need to add to expat.h. What I > posted works for me, but I know it still has problems. Particularly there > may very well be leaks if the documents you parse have DTDs and such. So > please, use at your own risk.... I'm planning to review this patch for inclusion in 1.95.3 (sorry; no schedule yet), modified to handle any memory management issues. -Fred -- Fred L. Drake, Jr. PythonLabs at Zope Corporation From kugan@mediasolv.com Sun Sep 23 00:23:02 2001 From: kugan@mediasolv.com (Kugan) Date: Sat Sep 22 23:23:02 2001 Subject: [Expat-discuss] Copiling expat for ARM Message-ID: <001e01c143f8$712fe840$0203a8c0@mediasolv.com> This is a multi-part message in MIME format. ---------------------- multipart/alternative attachment Hi All I am new to this mailing list, I recently downloadede expat parser = from your web (expat.zip) and tryng to cross compile this for arm = platform, I did the necessary modification to the Makefile for cross = compilation, when i crosscompile I am getting following error. arm-uclinux-gcc -c -I../utils/uC-libc/include/ -c -o xmlparse.o = xmlparse.c xmlparse.c: In function `XML_GetBuffer': xmlparse.c:960: warning: passing arg 2 of `memmove' discards qualifiers = from pointer target type xmlparse.c: In function `poolGrow': xmlparse.c:3897: parse error before `BLOCK' xmlparse.c:3912: parse error before `BLOCK' make: *** [xmlparse.o] Error 1 Is there any expat distripution for crosscompilation and tested with = arm. and what is the reason for this error?? Thanx in advance Best Regards Kugan ---------------------- multipart/alternative attachment An HTML attachment was scrubbed... URL: http://mail.libexpat.org/pipermail-21/expat-discuss/attachments/20010922/c4b6d58c/attachment.html ---------------------- multipart/alternative attachment-- From karl@waclawek.net Thu Sep 27 13:49:02 2001 From: karl@waclawek.net (Karl Waclawek) Date: Thu Sep 27 12:49:02 2001 Subject: [Expat-discuss] Expat To SAX Message-ID: <000e01c1478b$2a0f8150$9e539696@citkwaclaww2k> I am writing a SAX wrapper for Expat (in Delphi/Win32) and have a few questions: * Which event/callback in Expat corresponds to SAXContentHandler.skippedEntity(...) It is defined like this: "The Parser will invoke this method once for each entity skipped. Non-validating processors may skip entities if they have not seen the declarations (because, for example, the entity was declared in an external DTD subset). All processors may skip external entities, depending on the values of the http://xml.org/sax/features/external-general-entities and the http://xml.org/sax/features/external-parameter-entities properties." The closest I could find was the XML_ExternalEntityRefHandler(...), but I don't know under which condition I would call skippedEntity instead of SAXEntityResolver.resolveEntity(...) * Which event/callback in Expat corresponds to SAXContentHandler.ignorableWhiteSpace(...) I think the best bet would be XML_DefaultHandler(..), but it will be called more often and with other data too. * Where does the SAXLocator get the SystemId and PublicId It is defined like this: "The return value is the public/system identifier of the document entity or of the external parsed entity in which the markup triggering the event appears" Where does Expat return these? Should I use XML_SetStartDoctypeDeclHandler and push them on a stack in userData? If I parse external entities (ExternalEntityRefHandler) then I assume I would push another set of PublicId/SystemId on the stack? I would be grateful for any feedback. Karl