From bryan_lists@netmeme.org Tue Feb 5 19:39:01 2002 From: bryan_lists@netmeme.org (Bryan Field-Elliot) Date: Tue Feb 5 19:39:01 2002 Subject: [Expat-discuss] Writing XML, and Reading/Writing SOAP Message-ID: <1012966712.32409.24.camel@c1593933-a.boulder1.co.home.com> ---------------------- multipart/alternative attachment Hi all, I've been doing Java development for three years now, although prior to that I had done many years worth of C/C++ work. I'm now on a project which is going to be heavy XML, in plain-vanilla-C. I intend to use expat to read in XML data, but I also have to write XML, and I also will likely have to handle SOAP (both read and write). I was wondering if there are expat experts out there, who can direct me to any libraries (in tight C) which can aid writing XML, or in reading/writing SOAP envelopes. I'm also not opposed to the idea that these problems are simple enough that I should be rolling my own in the first place. Any tips, pointers, etc, would be appreciated! (Pointers... been a while! ;) ) Thank you, Bryan ---------------------- multipart/alternative attachment An HTML attachment was scrubbed... URL: http://mail.libexpat.org/pipermail-21/expat-discuss/attachments/20020205/b7acdbf9/attachment.html ---------------------- multipart/alternative attachment-- From zyjtop@263.net Wed Feb 6 17:35:01 2002 From: zyjtop@263.net (zhaojun) Date: Wed Feb 6 17:35:01 2002 Subject: [Expat-discuss] =?gb2312?B?RXhwYXQgRm9yIEdCMjMxMg==?= Message-ID: <3C61D937.00001C.02986@smtp2> ---------------------- multipart/alternative attachment Dear Friend: Can Someone please send me some sample code of expat, parsing an XML file in the Chinese Language(Support gb2312 charset). How does one go about generating the mapping function from Unicode to gb2312. Thank You! __________________________________________ 全场特价:数码相机、掌上电脑、MP3 http://shopping.263.net/category21.htm 天赢炒股,天生我赢! http://stock19.263.net/download/borntowin.htm ---------------------- multipart/alternative attachment An HTML attachment was scrubbed... URL: http://mail.libexpat.org/pipermail-21/expat-discuss/attachments/20020206/76428cc5/attachment.html ---------------------- multipart/alternative attachment-- From zyjtop@263.net Wed Feb 6 17:36:01 2002 From: zyjtop@263.net (zhaojun) Date: Wed Feb 6 17:36:01 2002 Subject: [Expat-discuss] =?gb2312?B?RXhwYXQgRm9yIEdCMjMxMg==?= Message-ID: <3C61D96A.000024.02986@smtp2> ---------------------- multipart/alternative attachment Dear Friend: Can Someone please send me some sample code of expat, parsing an XML file in the Chinese Language(Support gb2312 charset). How does one go about generating the mapping function from Unicode to gb2312. Thank You! __________________________________________ 全场特价:数码相机、掌上电脑、MP3 http://shopping.263.net/category21.htm 天赢炒股,天生我赢! http://stock19.263.net/download/borntowin.htm ---------------------- multipart/alternative attachment An HTML attachment was scrubbed... URL: http://mail.libexpat.org/pipermail-21/expat-discuss/attachments/20020206/c616058d/attachment.html ---------------------- multipart/alternative attachment-- From matt_butler@Equilibrium.com Tue Feb 12 15:27:03 2002 From: matt_butler@Equilibrium.com (Matt Butler) Date: Tue Feb 12 15:27:03 2002 Subject: [Expat-discuss] sizeof(wchar_t) == 4 Where to begin? Message-ID: <485DDCAF601A7247A4957B955167FD900A18B7@eqexchange2.equildom.equilibrium.com> Hello- From sarone.thach@zeacom.net Sun Feb 17 13:11:02 2002 From: sarone.thach@zeacom.net (Sarone Thach) Date: Sun Feb 17 13:11:02 2002 Subject: [Expat-discuss] parse error code - no element found Message-ID: <89442171CAB9D411889900D0B7A926943EACD9@gauntlet.zeacom.net> Hi, I'm very new to expat. I have been getting errors like "no element found". Could some one tell me what the common cause of this error is. The Text in the xml file that I'm reading is the following: I have handlers in the code to process the above instructions. Any feedback will be very much appreciated. cheers, Sarone From andrew.nesbit@csiro.au Mon Feb 18 16:09:04 2002 From: andrew.nesbit@csiro.au (Andrew Nesbit) Date: Mon Feb 18 16:09:04 2002 Subject: [Expat-discuss] Entity references: how not to parse? Message-ID: <3C719760.3090504@csiro.au> Okay, so when expat reads one of the five pre-defined general entity references (such as ``&'') it converts them into the character they represent (such as ``&''). That's great for most applications, but what I want to do is /not/ have these entity references converted. Is there a way to do this using expat 1.95.2? Thankyou. -Andrew From andrew.nesbit@csiro.au Mon Feb 18 18:57:04 2002 From: andrew.nesbit@csiro.au (Andrew Nesbit) Date: Mon Feb 18 18:57:04 2002 Subject: [Expat-discuss] Entity references: how not to parse? References: <200202190048.BAA26278@www.pointsman.de> Message-ID: <3C71BEC8.7090908@csiro.au> rolf@pointsman.de wrote: >On 19 Feb, Andrew Nesbit wrote: > >>Okay, so when expat reads one of the five pre-defined general entity >>references (such as ``&'') it converts them into the character they >>represent (such as ``&''). That's great for most applications, but what >>I want to do is /not/ have these entity references converted. >> > >You could not do that. You would change the content of your XML >document. Or... If the parser don't resolve & to & it must be >seen by the application as &amp; - is it that, that you're behind? > The application I'm writing parses XML and stores the results in an intermediate form. This intermediate form (a C struct) needs to be passed around to various functions in other libraries we are writing, but also must be able to be converted back to XML. Our DTD is very simple, so to convert from the struct to XML, I have basically just used printf's which mostly works fine. The resulting XML document need not be identical to the original XML document, although it must carry the same information. Therefore, to change original question somewhat, I could solve the problem with a utility which takes some null-terminated string and converts it to the equivalent string where each appropriate character (single quote, double quote, ampersand, etc) is converted into its general entity representation. Do you know of such a utility? Thankyou. -Andrew From andrew.nesbit@csiro.au Tue Feb 19 00:24:07 2002 From: andrew.nesbit@csiro.au (Andrew Nesbit) Date: Tue Feb 19 00:24:07 2002 Subject: [Expat-discuss] Error handling with Expat Message-ID: <3C720B77.6050906@csiro.au> Is there some way by which I can tell the parser to stop parsing and return an error code to the caller of XML_Parse()? I want to do this from within the handlers. However, I cannot find any likely-looking function calls in the Expat API. Thanks for any help. -Andrew From ebohlman@earthlink.net Wed Feb 20 16:18:03 2002 From: ebohlman@earthlink.net (Eric Bohlman) Date: Wed Feb 20 16:18:03 2002 Subject: [Expat-discuss] parse error code - no element found Message-ID: 2/17/02 3:07:04 PM, Sarone Thach wrote: >Hi, > >I'm very new to expat. I have been getting errors like "no element found". >Could some one tell me what the common cause of this error is. > >The Text in the xml file that I'm reading is the following: > > > > > >I have handlers in the code to process the above instructions. The error is exactly as it says. The XML Recommendation requires that a well-formed XML document contain exactly one top-level element, and your document doesn't contain any element, just processing instructions. That's not allowed. From Guoneng.Zhong@med.nyu.edu Thu Feb 21 06:12:12 2002 From: Guoneng.Zhong@med.nyu.edu (Guoneng Zhong) Date: Thu Feb 21 06:12:12 2002 Subject: [Expat-discuss] make failed on Tru64, anyone with this problem? Message-ID: <77CE10B0-26D4-11D6-8445-0050E41E5C1B@med.nyu.edu> Hi, I am wondering if anyone else had this strange problem, not necessarily on the Tru64 Alpha machine. I downloaded both 1.95-1 and 1.95-2, and the same problems. I typed in ./configure. No problem. Everything seems ok in the output. I typed make and nothing happens. The unix prompt appears again. No error message and no indication that anything was ok or wrong. A colleague told me to look at the config.log, and the only strange thing I found was three repetitions of the following: ltconfig:1653: checking if global_symbol_pipe works ltconfig:1654: cc -c -g conftest.c 1>&5 ltconfig:1657: eval "/usr/bin/nm conftest.o | sed -n -e 's/^.*[ ]\([BCDEGRST]\)[ ][ ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' > conftest.nm" cannot run sed -n -e 's/^.*[ ]\([BCDEGRST]\)[ ][ ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' Not sure if this is a hint (when I compiled sucessfully 1.95-1 on Mac OS X, I didn't see this). Any help? Thanks, Guoneng From ty.roach@acecomm.com Thu Feb 21 07:16:52 2002 From: ty.roach@acecomm.com (ty.roach@acecomm.com) Date: Thu Feb 21 07:16:52 2002 Subject: [Expat-discuss] make failed on Tru64, anyone with this problem? Message-ID: Can't offer any help, but I experienced the same thing. I'm running Solaris 2.6, in the K shell environment. Ty Roach ty.roach@acecomm.com Ace*Comm Engineering Manager 704 Quince Orchard Rd, Suite 100 Gaithersburg MD, 20878 (w) 301-721-3113 (fx) 301-721-3001 Guoneng Zhong To: expat-discuss@lists.sourceforge.net Sent by: cc: expat-discuss-admin@lists.sourc Subject: [Expat-discuss] make failed on Tru64, anyone with eforge.net this problem? 02/21/02 09:08 AM Hi, I am wondering if anyone else had this strange problem, not necessarily on the Tru64 Alpha machine. I downloaded both 1.95-1 and 1.95-2, and the same problems. I typed in ./configure. No problem. Everything seems ok in the output. I typed make and nothing happens. The unix prompt appears again. No error message and no indication that anything was ok or wrong. A colleague told me to look at the config.log, and the only strange thing I found was three repetitions of the following: ltconfig:1653: checking if global_symbol_pipe works ltconfig:1654: cc -c -g conftest.c 1>&5 ltconfig:1657: eval "/usr/bin/nm conftest.o | sed -n -e 's/^.*[ ]\([BCDEGRST]\)[ ][ ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' > conftest.nm" cannot run sed -n -e 's/^.*[ ]\([BCDEGRST]\)[ ][ ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' Not sure if this is a hint (when I compiled sucessfully 1.95-1 on Mac OS X, I didn't see this). Any help? Thanks, Guoneng _______________________________________________ Expat-discuss mailing list Expat-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/expat-discuss From fdrake@acm.org Thu Feb 21 13:37:17 2002 From: fdrake@acm.org (Fred L. Drake, Jr.) Date: Thu Feb 21 13:37:17 2002 Subject: [Expat-discuss] what is xmlwf? In-Reply-To: <41688.65.5.145.141.1007330373.squirrel@www.rinspin.com> References: <15368.64374.978299.900046@grendel.zope.com> <41688.65.5.145.141.1007330373.squirrel@www.rinspin.com> Message-ID: <15477.26644.125249.128913@grendel.zope.com> Scott Bronson writes: > Ask and ye shall recieve. > > Here's a first pass. It's a bit raw, but it should be adequate to Well, surprise of surprises, I didn't lose this! It's now checked in, with my addition of a description of the -v option I added to xmlwf a few days after you sent this. I must apologize for the delay in getting this checked in; I wasn't holding it back for any particular reason, I just didn't get as much time for Expat as I'd hoped. I wasn't able to get the docbook-to-man tool working on my Mandrake box; if you'd like, I'll be glad to add you to the project on SourceForge so you can update this yourself and check in the nroff version. Many thanks for your contribution! -Fred -- Fred L. Drake, Jr. PythonLabs at Zope Corporation From fdrake@acm.org Thu Feb 21 14:03:02 2002 From: fdrake@acm.org (Fred L. Drake, Jr.) Date: Thu Feb 21 14:03:02 2002 Subject: [Expat-discuss] xmlwf test harness In-Reply-To: <41931.65.5.145.141.1007336122.squirrel@www.rinspin.com> References: <41931.65.5.145.141.1007336122.squirrel@www.rinspin.com> Message-ID: <15477.28176.403471.257319@grendel.zope.com> Scott Bronson writes: > In writing the xmlwf man page, I found it useful to set up a small > functional test harness to check a few things. I've made it available I'll be taking a look at this next. The "check" unit testing support appears to be getting abandoned. If anyone has any pointers to open source unit test support for C, I'd really appreciate it. I've no idea how portable "check" is to Windows; I'd like to end up with something that works both on Windows and Unix. -Fred -- Fred L. Drake, Jr. PythonLabs at Zope Corporation From patrick@MEER.NET Thu Feb 21 14:48:05 2002 From: patrick@MEER.NET (Patrick McCormick) Date: Thu Feb 21 14:48:05 2002 Subject: [Expat-discuss] xmlwf test harness Message-ID: <008f01c1bb29$9c01a010$9c9c9dd1@patrick1> I looked at check, and I am not really happy with it either. What does expat need from a test harness? Does it need process-separation (a la check?) It could be that a simple home-grown scheme would suffice for basic functionality testing. Here's a first cut at requirements: 1) easy to add tests 2) automatable 3) not overly dependent on outside packages because I'd like to see something that people will be able to easily add checks without having to download a zillion packages or wade through lengthy instructions. Otherwise, nobody writes checks, and no unit tests for expat. :( What do other projects use for a test harness? Are there tiny macro-driven solutions that we could adopt? --Patrick From zhongg01@med.nyu.edu Thu Feb 21 20:10:02 2002 From: zhongg01@med.nyu.edu (Guoneng Zhong) Date: Thu Feb 21 20:10:02 2002 Subject: [Expat-discuss] no compile but perhaps binary for Tru64? In-Reply-To: <008f01c1bb29$9c01a010$9c9c9dd1@patrick1> Message-ID: Hi, I recently posted an urgent plea for help on building expat on Tru64 Alpha. So far no response. So I am wondering (while waiting for a possible response) if anyone has successfully compiled it on Tru64 Alpha and perhaps share their binaries with me? I urgently need it for the perl libraries. Thanks, Guoneng On Thursday, February 21, 2002, at 05:46 PM, Patrick McCormick wrote: > I looked at check, and I am not really happy with it either. > > What does expat need from a test harness? Does it need > process-separation > (a la check?) > > It could be that a simple home-grown scheme would suffice for basic > functionality testing. Here's a first cut at requirements: > > 1) easy to add tests > 2) automatable > 3) not overly dependent on outside packages > > because I'd like to see something that people will be able to easily add > checks without having to download a zillion packages or wade through > lengthy instructions. Otherwise, nobody writes checks, and no unit > tests > for expat. :( > > What do other projects use for a test harness? Are there tiny > macro-driven > solutions that we could adopt? > > --Patrick > > > > _______________________________________________ > Expat-discuss mailing list > Expat-discuss@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/expat-discuss From Josh.Martin@abq.sc.philips.com Mon Feb 25 10:33:24 2002 From: Josh.Martin@abq.sc.philips.com (Josh Martin) Date: Mon Feb 25 10:33:24 2002 Subject: [Expat-discuss] make failed on Tru64, anyone with this problem? Message-ID: <200202251832.LAA07559@abqn42.abq.sc.philips.com> A non-text attachment was scrubbed... Name: not available Type: text Size: 3234 bytes Desc: not available Url : http://mail.libexpat.org/pipermail-21/expat-discuss/attachments/20020225/9effee9e/attachment.bin From Guoneng.Zhong@med.nyu.edu Mon Feb 25 13:02:06 2002 From: Guoneng.Zhong@med.nyu.edu (Guoneng Zhong) Date: Mon Feb 25 13:02:06 2002 Subject: [Expat-discuss] make failed on Tru64, anyone with this problem? In-Reply-To: <200202251832.LAA07559@abqn42.abq.sc.philips.com> Message-ID: <47864A54-2A32-11D6-84A8-0050E41E5C1B@med.nyu.edu> Yup, sed works on my computer :-) G On Monday, February 25, 2002, at 01:32 PM, Josh Martin wrote: > I have to ask the obvious question... do you guys have a working sed > installed > on your machine? > > - Josh Martin > >> Can't offer any help, but I experienced the same thing. I'm running >> Solaris 2.6, in the K shell environment. >> >> Ty Roach >> ty.roach@acecomm.com >> Ace*Comm Engineering Manager >> 704 Quince Orchard Rd, Suite 100 >> Gaithersburg MD, 20878 >> (w) 301-721-3113 >> (fx) 301-721-3001 >> >> >> >> Guoneng Zhong >> To: > expat-discuss@lists.sourceforge.net >> Sent by: cc: >> expat-discuss-admin@lists.sourc Subject: > [Expat-discuss] make failed on Tru64, anyone with >> eforge.net this >> problem? >> >> >> 02/21/02 09:08 AM >> >> >> >> >> >> >> Hi, >> I am wondering if anyone else had this strange problem, not necessarily >> on the Tru64 Alpha machine. I downloaded both 1.95-1 and 1.95-2, and >> the same problems. I typed in ./configure. No problem. Everything >> seems ok in the output. I typed make and nothing happens. The unix >> prompt appears again. No error message and no indication that anything >> was ok or wrong. A colleague told me to look at the config.log, and >> the >> only strange thing I found was three repetitions of the following: >> >> ltconfig:1653: checking if global_symbol_pipe works >> ltconfig:1654: cc -c -g conftest.c 1>&5 >> ltconfig:1657: eval "/usr/bin/nm conftest.o | sed -n -e 's/^.*[ >> ]\([BCDEGRST]\)[ ][ ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 >> \2\3 \3/p' > conftest.nm" >> cannot run sed -n -e 's/^.*[ ]\([BCDEGRST]\)[ ][ >> ]*\(\)\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2\3 \3/p' >> >> >> Not sure if this is a hint (when I compiled sucessfully 1.95-1 on Mac >> OS >> X, I didn't see this). >> >> Any help? >> >> Thanks, >> Guoneng >> >> >> _______________________________________________ >> Expat-discuss mailing list >> Expat-discuss@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/expat-discuss >> >> >> >> >> >> _______________________________________________ >> Expat-discuss mailing list >> Expat-discuss@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/expat-discuss > > _______________________________________________ > Expat-discuss mailing list > Expat-discuss@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/expat-discuss From bronson@rinspin.com Tue Feb 26 09:43:12 2002 From: bronson@rinspin.com (Scott Bronson) Date: Tue Feb 26 09:43:12 2002 Subject: [Expat-discuss] xmlwf test harness In-Reply-To: <008f01c1bb29$9c01a010$9c9c9dd1@patrick1> References: <008f01c1bb29$9c01a010$9c9c9dd1@patrick1> Message-ID: <33053.68.6.87.242.1014745330.squirrel@www.rinspin.com> tmtest is a small Perl tool I wrote to do functional tests. You can find my tmtest/expat example harness here: http://www.trestle.com/linux/test-xmlwf.tar.gz Untar it and run ./tmtest to run all the tests. I think it meets all 3 of your requirements, as long as Perl 5 is not considered bad. I realize that writing test files is perhaps not as easy as it should be. (Since I wrote it, it looks easy to me...) If you have any suggestions, I'm more than happy to make the changes. Also, maybe I can write up some real tmtest docs later on this week... Does this look useful? - Scott * Functional tests are run on the product as a whole, while unit tests work directly with each individual software component. Ideally, projects will use both types of tests -- they're quite complimentary. > I looked at check, and I am not really happy with it either. > > What does expat need from a test harness? Does it need > process-separation (a la check?) > > It could be that a simple home-grown scheme would suffice for basic > functionality testing. Here's a first cut at requirements: > > 1) easy to add tests > 2) automatable > 3) not overly dependent on outside packages > > because I'd like to see something that people will be able to easily > add checks without having to download a zillion packages or wade > through lengthy instructions. Otherwise, nobody writes checks, and no > unit tests for expat. :( > > What do other projects use for a test harness? Are there tiny > macro-driven solutions that we could adopt? > > --Patrick > > > > _______________________________________________ > Expat-discuss mailing list > Expat-discuss@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/expat-discuss