From gnschmidt at ukonline.co.uk Thu Jan 5 14:26:11 2006 From: gnschmidt at ukonline.co.uk (gnschmidt at ukonline.co.uk) Date: Thu, 5 Jan 2006 13:26:11 +0000 Subject: [Expat-discuss] UTF-16 parse fails with "Unclosed token" at line 1 offset 1 Message-ID: <1136467571.43bd1e734c177@webmail.ukonline.net> I'm having trouble parsing an XML document encoded UTF-16. I create the parser with XML_ParserCreate(NULL) and I parse the document as follows: // std::string buffer contains the UTF-16 document if (XML_Parse(p, buffer.c_str(), buffer.size(), true) == XML_STATUS_ERROR) return false; The error reported is "Unclosed token" at line 1 offset 1. Parsing works fine with UTF-8 documents. I created and checked the document with XMLSpy, so I can't imagine there really is an unclosed token (I tried both little- and big-endian UTF-16). What am I doing wrong? I'd be very grateful for all help, Gerald ---------------------------------------------- This mail sent through http://www.ukonline.net From karl at waclawek.net Wed Jan 11 16:11:56 2006 From: karl at waclawek.net (Karl Waclawek) Date: Wed, 11 Jan 2006 10:11:56 -0500 Subject: [Expat-discuss] Expat 2.0 released Message-ID: <43C5203C.3010608@waclawek.net> Release 2.0.0 of the Expat XML parser is the end point of the 1.95.X series of releases. The goals we tried to achieve were: - Solidify and stabilize the implementation of the given API. - Add desirable features as long as they fit with the API. - Keep the API backwards compatible, if extensions are needed. Changes: - We no longer use the "check" library for C unit testing; we always use the (partial) internal implementation of the API. - Report XML_NS setting via XML_GetFeatureList(). - Fixed headers for use from C++. - XML_GetCurrentLineNumber() and XML_GetCurrentColumnNumber() now return unsigned integers. - Added XML_LARGE_SIZE switch to enable 64-bit integers for byte indexes and line/column numbers. - Updated to use libtool 1.5.22 (the most recent). - Added support for AmigaOS. - Some mostly minor bug fixes. SF issues include: 1006708, 1021776, 1023646, 1114960, 1156398, 1221160, 1271642. Karl From guenter.obiltschnig at appinf.com Wed Jan 11 18:16:17 2006 From: guenter.obiltschnig at appinf.com (Guenter Obiltschnig) Date: Wed, 11 Jan 2006 18:16:17 +0100 Subject: [Expat-discuss] Expat 2.0 released Message-ID: Karl, and all contributors! Thank you for the excellent work you've done with the 2.0 release! All the best, G?nter On Jan 11, 2006, at 16:11 , Karl Waclawek wrote: > Release 2.0.0 of the Expat XML parser is the end point of the > 1.95.X series of releases. The goals we tried to achieve were: > > - Solidify and stabilize the implementation of the given API. > - Add desirable features as long as they fit with the API. > - Keep the API backwards compatible, if extensions are needed. -- G?nter Obiltschnig Applied Informatics guenter.obiltschnig at appinf.com http://www.appinf.com P: +43 4253 32596 M: +43 676 5166737 F: +43 4253 32096 -------------------------------------------------------- The C++ Portable Components: http://poco.appinf.com From xcross at us.ibm.com Sun Jan 15 14:00:54 2006 From: xcross at us.ibm.com (Chris Cross) Date: Sun, 15 Jan 2006 06:00:54 -0700 Subject: [Expat-discuss] Chris Cross/West Palm Beach/IBM is out of the office. Message-ID: I will be out of the office starting 01/03/2006 and will not return until 01/17/2006. I have been on vacation for two weeks starting Jan 1 and my hard drive crashed at the beginning of vacation :( I am starting to wade through the mountain of email. Please call me if you have something urgent that I haven't replied to yet. From Jeff.Kish at mro.com Mon Jan 16 14:07:42 2006 From: Jeff.Kish at mro.com (Jeff.Kish at mro.com) Date: Mon, 16 Jan 2006 08:07:42 -0500 Subject: [Expat-discuss] expat can I use this to.. Message-ID: Greetings. Is it possible to use expat to create xml strings and send them as parameter values in a c++ application, then use expat to parse them on the receiving end without ever actually creating a file? If so a starter suggestion would be appreciated. thanks Jeff Kish Maximo Navigator, College Diving & Wind Surfing enthusiast Live Long and Prosper 616-956-7755 x18 voice 616-956-9410 fax From regis.st-gelais at laubrass.com Mon Jan 16 20:15:03 2006 From: regis.st-gelais at laubrass.com (=?iso-8859-1?Q?R=E9gis_St-Gelais_=28Laubrass=29?=) Date: Mon, 16 Jan 2006 14:15:03 -0500 Subject: [Expat-discuss] expat can I use this to.. References: Message-ID: <00cf01c61ad1$287103a0$6400a8c0@laubrasssag1> ----- Original Message ----- >From: Jeff.Kish at mro.com >To: expat-discuss at libexpat.org >Sent: Monday, January 16, 2006 8:07 AM >Subject: [Expat-discuss] expat can I use this to.. > > > >Greetings. > >Is it possible to use expat to create xml strings and send them as >parameter values in a c++ application, then use expat to parse them on the >receiving end without ever actually creating a file? If so a starter >suggestion would be appreciated. > >thanks > >Jeff Kish Jeff, expat is not "file aware". It does not care where the XML data is comming from. You simply call XML_Parse with your XML data to parse (or part of it) in a buffer. R?gis St-Gelais From regis.st-gelais at laubrass.com Mon Jan 16 20:18:40 2006 From: regis.st-gelais at laubrass.com (=?iso-8859-1?Q?R=E9gis_St-Gelais_=28Laubrass=29?=) Date: Mon, 16 Jan 2006 14:18:40 -0500 Subject: [Expat-discuss] expat can I use this to.. References: Message-ID: <00d601c61ad1$a9b7f450$6400a8c0@laubrasssag1> ----- Original Message ----- >From: Jeff.Kish at mro.com >To: expat-discuss at libexpat.org >Sent: Monday, January 16, 2006 8:07 AM >Subject: [Expat-discuss] expat can I use this to.. > > > >Greetings. > >Is it possible to use expat to create xml strings and send them as >parameter values in a c++ application, then use expat to parse them on the >receiving end without ever actually creating a file? If so a starter >suggestion would be appreciated. > >thanks > >Jeff Kish expat is a parser, it can only "read" XML. I usualy create the XLM file manualy using printf. Regis St-Gelais From devyani.sapre at wipro.com Tue Jan 17 12:51:56 2006 From: devyani.sapre at wipro.com (devyani.sapre at wipro.com) Date: Tue, 17 Jan 2006 17:21:56 +0530 Subject: [Expat-discuss] How to run an expat example ??? Message-ID: <21227C6FF0A66E459AC07C4DC1CE7F76FFC83A@BLR-EC-MBX01.wipro.com> Hi All ! I am new to Expat. Prior to this I have used SAX and DOM. I have downloaded and installed the package but am not sure how it will work. Just want to know how can I run a sample program so that I can get a clearer picture on the functionality of EXPAT parser. Thanks in Advance Devyani The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com From Jeff.Kish at mro.com Tue Jan 17 14:01:42 2006 From: Jeff.Kish at mro.com (Jeff.Kish at mro.com) Date: Tue, 17 Jan 2006 08:01:42 -0500 Subject: [Expat-discuss] Expat-discuss Digest, Vol 70, Issue 4 In-Reply-To: Message-ID: > ------------------------------ > > Message: 2 > Date: Mon, 16 Jan 2006 14:15:03 -0500 > From: R?gis St-Gelais (Laubrass) > Subject: Re: [Expat-discuss] expat can I use this to.. > To: expat-discuss at libexpat.org > Message-ID: <00cf01c61ad1$287103a0$6400a8c0 at laubrasssag1> > Content-Type: text/plain; format=flowed; charset=iso-8859-1; > reply-type=original > > ----- Original Message ----- > >From: Jeff.Kish at mro.com > >To: expat-discuss at libexpat.org > >Sent: Monday, January 16, 2006 8:07 AM > >Subject: [Expat-discuss] expat can I use this to.. > > > > > > > >Greetings. > > > >Is it possible to use expat to create xml strings and send them as > >parameter values in a c++ application, then use expat to parse them on the > >receiving end without ever actually creating a file? If so a starter > >suggestion would be appreciated. > > > >thanks > > > >Jeff Kish > > > Jeff, > > expat is not "file aware". > It does not care where the XML data is comming from. > You simply call XML_Parse with your XML data to parse (or part of it) in a > buffer. > > R?gis St-Gelais > > > > expat is a parser, it can only "read" XML. > > I usualy create the XLM file manualy using printf. > > Regis St-Gelais Thanks both. From karl at waclawek.net Tue Jan 17 14:55:27 2006 From: karl at waclawek.net (Karl Waclawek) Date: Tue, 17 Jan 2006 08:55:27 -0500 Subject: [Expat-discuss] How to run an expat example ??? In-Reply-To: <21227C6FF0A66E459AC07C4DC1CE7F76FFC83A@BLR-EC-MBX01.wipro.com> References: <21227C6FF0A66E459AC07C4DC1CE7F76FFC83A@BLR-EC-MBX01.wipro.com> Message-ID: <43CCF74F.3080206@waclawek.net> devyani.sapre at wipro.com wrote: > Hi All ! > > > > > > I am new to Expat. Prior to this I have used SAX and DOM. I have > downloaded and installed the package but am not sure how it will work. > > > > Just want to know how can I run a sample program so that I can get a > clearer picture on the functionality of EXPAT parser. > > Example programs are included with the Expat distribution. Karl From boris at codesynthesis.com Tue Jan 24 11:30:10 2006 From: boris at codesynthesis.com (Boris Kolpackov) Date: Tue, 24 Jan 2006 10:30:10 +0000 (UTC) Subject: [Expat-discuss] [ANN] xsd - open source XML Schema to C++ translator Message-ID: Good day, I would like to announce the availability of xsd, a cross-platform, open source W3C XML Schema to C++ translator. Provided with an XML instance description (XML Schema), it generates C++ classes that represent the given vocabulary as well as parsing and serialization code: http://codesynthesis.com/products/xsd/ Compared to APIs such as DOM and SAX, the generated code allows you to access the information in XML instance documents using your domain vocabulary instead of generic elements, attributes, and text. Static typing helps catch errors at compile-time rather than at run-time. Automatic code generation frees you for more interesting tasks and minimizes the effort needed to adopt to changes in the document structure. xsd supports two C++ mappings: in-memory C++/Tree and event-driven C++/Parser. The C++/Tree mapping consists of C++ classes that represent data types defined in XML Schema, a set of parsing functions that convert XML instance documents to a tree-like in-memory data structure, and a set of serialization functions that convert the in-memory representation back to XML. For an introduction to the C++/Tree mapping refer to the C++/Tree Mapping Quick Guide: http://codesynthesis.com/projects/xsd/documentation/cxx/tree/quick-guide/ The C++/Parser mapping provides parser templates for data types defined in XML Schema. Using these parser templates you can build your own in-memory representations or perform immediate processing of XML instance documents. For an introduction to the C++/Parser mapping refer to the C++/Parser Mapping Quick Guide: http://codesynthesis.com/projects/xsd/documentation/cxx/parser/quick-guide/ The C++/Parser mapping uses Expat as the underlying XML parser. xsd runs on a range of platforms, including GNU/Linux, Windows, Mac OS X, Solaris, and HP-UX. Supported C++ compilers include GNU g++, Intel C++, Sun C++, HP aCC, and Microsoft Visual C++. -boris From mostman at gmail.com Tue Jan 24 20:20:43 2006 From: mostman at gmail.com (Mike Ostman) Date: Tue, 24 Jan 2006 14:20:43 -0500 Subject: [Expat-discuss] question about [ and ] inside CDATA tags Message-ID: (Sent this message to the bugs list first - that was probably the wrong place. Sorry for the resend) I am trying to specify a CDATA element where the data has hard brackets. Specifically - here is my example: First - this is legal - correct? I opened the file in some XML editors and it seemed to parse just fine. When I parsed this with expat - all I get back in my CDATA handler is "]" (The closing hard bracket) Has anyone else noticed this? Thank you in advance- -Mike