From bruno at clisp.org Sun Sep 2 13:40:09 2007 From: bruno at clisp.org (Bruno Haible) Date: Sun, 2 Sep 2007 13:40:09 +0200 Subject: [Expat-discuss] XML_LARGE_SIZE binary compatibility problem In-Reply-To: <4436B3D2.3090406@waclawek.net> References: <200604071418.10160.bruno@clisp.org> <4436B3D2.3090406@waclawek.net> Message-ID: <200709021340.09064.bruno@clisp.org> Hello, Karl Waclawek wrote: > We could add a new return value to XML_GetFeatureList(), so that you can > dynamically detect if XML_LARGE_SIZE was used. Would that help you? Yes. Thank you for having implemented this in expat-2.0.1. Bruno From anoob.backer at gmail.com Tue Sep 11 09:13:02 2007 From: anoob.backer at gmail.com (Anoob Backer) Date: Tue, 11 Sep 2007 12:43:02 +0530 Subject: [Expat-discuss] merge and parse Message-ID: <33d63e800709110013o45fb0bf7hdf36b516142ffd23@mail.gmail.com> hi all, i would like to know the best method by which i can merge two or more files, parse and populate the custom objects using expat libs. merging doesn't mean just appending two files instead it should done on content basis. thanks bekz -- http://www.kfives.com From andrelsm at logitronic.com.br Tue Sep 11 15:00:54 2007 From: andrelsm at logitronic.com.br (=?ISO-8859-1?Q?Andr=E9 Lu=EDs da Silva Monteiro?=) Date: Tue, 11 Sep 2007 10:00:54 -0300 Subject: [Expat-discuss] merge and parse In-Reply-To: <33d63e800709110013o45fb0bf7hdf36b516142ffd23@mail.gmail.com> References: <33d63e800709110013o45fb0bf7hdf36b516142ffd23@mail.gmail.com> Message-ID: <20070911130054.25371.qmail@hm606.locaweb.com.br> hi I think the best way to do merging is to read the XML docs to merge in sequence, with unique instances of an XMLParser and an UserData, applying your merging rules (node ordering, replacement etc.) throughout parsing. With XML_ParserReset() you can "clean up the memory structures maintained by the parser so that it may be used again". regards Andr? Lu?s Tue, 11 Sep 2007 12:43:02 +0530, "Anoob Backer" escreveu: > hi all, > > i would like to know the best method by which i can merge two or more files, > parse and populate the custom objects using expat libs. > > merging doesn't mean just appending two files instead it should done on > content basis. > > thanks > bekz > -- > http://www.kfives.com > _______________________________________________ > Expat-discuss mailing list > Expat-discuss at libexpat.org > http://mail.libexpat.org/mailman/listinfo/expat-discuss > > > ---Registre seu dom?nio .com ou .net por apenas R$15,00/ano e GANHE hospedagem, blog e e-mail gr?tis!LocaWeb - Solu??es Completas em Servi?os de Internet (www.locaweb.com.br) From webmaster at hartwork.org Fri Sep 14 21:11:17 2007 From: webmaster at hartwork.org (Sebastian Pipping) Date: Fri, 14 Sep 2007 21:11:17 +0200 Subject: [Expat-discuss] Version-specific Expat presence checks for Autoconf Message-ID: <46EADCD5.8050304@hartwork.org> Hello! I was wondering if there is some place collecting version-specific Expat presence checks for Autoconf, if there is need in making a list or something. (I have not looked into pkgconfig yet in case that can do it as well or even better.) ## 1.95.8 or later EXPAT_MISSING="Please install libexpat 1.95.8 or later. On Ubuntu enter 'sudo apt-get install libexpat-dev'." AC_CHECK_LIB(expat, XML_ResumeParser,, AC_MSG_ERROR(${EXPAT_MISSING})) AC_CHECK_HEADER(expat.h,, AC_MSG_ERROR(${EXPAT_MISSING})) ## 1.2 or later EXPAT_MISSING="Please install libexpat 1.2 or later. On Ubuntu enter 'sudo apt-get install libexpat-dev'." AC_CHECK_LIB(expat, XML_SetDoctypeDeclHandler,, AC_MSG_ERROR($EXPAT_MISSING)) AC_CHECK_HEADER(xmlparse.h,[ ## xmlparse.h found CPPFLAGS="${CPPFLAGS} -DEXPAT_H=\" ], [ AC_CHECK_HEADER(expat.h,[ ## expat.h found CPPFLAGS="${CPPFLAGS} -DEXPAT_H=\" ], [ ## both headers missing AC_MSG_ERROR($EXPAT_MISSING) ]) ]) Sebastian From 11mjazbdg02 at sneakemail.com Fri Sep 28 11:17:52 2007 From: 11mjazbdg02 at sneakemail.com (Mark) Date: 28 Sep 2007 09:17:52 -0000 Subject: [Expat-discuss] XPATH for expat? Message-ID: <20947-82853@sneakemail.com> Hi All, Does anyone know of a simple XPATH wrapper for expat? The reason is that I need to implement a parser and the schema is likely to change in the future so I don't want to hardcode too much. All I need to do is extract a few pieces of text from an XML document. TIA, Mark From 11mjazbdg02 at sneakemail.com Fri Sep 28 11:52:31 2007 From: 11mjazbdg02 at sneakemail.com (Mark) Date: 28 Sep 2007 09:52:31 -0000 Subject: [Expat-discuss] XPATH for expat? Message-ID: <11145-63833@sneakemail.com> Hi Jez, > -----Original Message----- > From: Jez Higgins jez-at-jezuk.co.uk |Expat/1.0-Allow| > > Does anyone know of a simple XPATH wrapper for expat? The reason is > > that I need to implement a parser and the schema is likely to change > > in the future so I don't want to hardcode too much. > > > > All I need to do is extract a few pieces of text from an > XML document. > > > > > My Arabica package provides SAX, DOM, and XPath over Expat. There's > partial XSLT too. It's written in C++, which may or may not > be an issue. > > It's available from http://www.jezuk.co.uk/arabica > > I'm not aware of any other XPath package for Expat, but that doesn't > mean there aren't any though. Unfortunately I need plain 'C' for this. Thanks anyway. Regards, Mark From nickmacd at gmail.com Fri Sep 28 16:50:38 2007 From: nickmacd at gmail.com (Nick MacDonald) Date: Fri, 28 Sep 2007 10:50:38 -0400 Subject: [Expat-discuss] XPATH for expat? In-Reply-To: <20947-82853@sneakemail.com> References: <20947-82853@sneakemail.com> Message-ID: Mark: I don't honestly know XPATH, but I presume your general idea is that there would be some input config file to your program that would give the path of the information that needs to be located, processed, updated or whatever it is that your program does. Assuming I understand your problem correctly, then this sounds like a simple enough task without using something with a high overhead. All you need to do is implement a small software stack (with push and pop operations) and whenever you see an XML file event (start tag, end tag) you push or pop as appropriate. Then you make a simple function that can walk the stack and output a textual "path" which gives your current location in the file (with a little creativity you could have the stack operations maintain the current path in a string fairly efficiently). Now all you need is to get the current path for every start tag, and find out if its one of the path's you supplied in your config file. It may not be as "standards based" as XPATH would be, but it would have the possibility of being very fast and low overhead. I have already written such code, and its not very large... I really wish I could share it, but my employer would frown on that. Good luck, Nick On 28 Sep 2007 09:17:52 -0000, Mark <11mjazbdg02 at sneakemail.com> wrote: > Does anyone know of a simple XPATH wrapper for expat? The reason is > that I need to implement a parser and the schema is likely to change > in the future so I don't want to hardcode too much. > > All I need to do is extract a few pieces of text from an XML document. -- Nick MacDonald NickMacD at gmail.com From dclusin at enernoc.com Thu Sep 20 21:51:50 2007 From: dclusin at enernoc.com (Dan Clusin) Date: Thu, 20 Sep 2007 19:51:50 -0000 Subject: [Expat-discuss] Compiling Expat for VxWorks Message-ID: <97948279523F1A4CA9C0ADE3ED520898011BA1A3@webmail> Greetings! Has anyone had any success (or tried) compiling expat and using it on a vxworks target? I'm curious as to what it would entail to pull this off. I gather it wouldn't take very much considering that it is mostly C, but I had trouble discerning what it would take from just the make files. Regards, Daniel Clusin From jasoncrab at hotmail.com Fri Sep 28 16:56:03 2007 From: jasoncrab at hotmail.com (jason xie) Date: Fri, 28 Sep 2007 14:56:03 -0000 Subject: [Expat-discuss] help on extracting svg style attribute Message-ID: hi everyone, I am trying to extrat the style attributs from the svg file. For example, In svg file, style attribute is formated as I want to extract the "fill" and its color "#cd4a41" I am still new to expat. Does anyone know a way of if expat has the function of doing that? Your heal will be much appreciated Regards Jason _________________________________________________________________ WIN new Jeep Compass & Off-Road Adventure with Trading Post! http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fwww%2Etradingpostcompetition%2Ecom%2Eau%2FOffRoadAdventure%2F%3Freferrer%3Dplace83&_t=763756818&_r=hotmail_email_tagline_July07&_m=EXT