From Sathiyanarayanan.R at in.flextronics.com Wed Jan 3 11:12:58 2007 From: Sathiyanarayanan.R at in.flextronics.com (Sathiyanarayanan R) Date: Wed, 3 Jan 2007 18:12:58 +0800 Subject: [Expat-discuss] eXpat=> Using eXpat to parse Fast Infoset binary format of XML data ... Message-ID: Dear All, New Year wishes!!! Need a suggestion from you, regarding the usage of eXpat. Due to size constraints, instead of parsing XML text data, I need to parse XML data in binary format. For a sample XML file, the hex array of the raw file is 78KB. After converting the same XML file into FI (Fast Infoset document) binary file, the hex array of this file is only 13KB. So, having binary XML data is more efficient in terms of memory. Please suggest the possibility and procedures to use eXpat for parsing FI binary files. Or, if any other binary format is parse-able with eXpat, kindly give the details. Regards, R.Sathiyanarayanan. Legal Disclaimer: The information contained in this message may be privileged and confidential. It is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete or destroy any copy of this message From Sathiyanarayanan.R at in.flextronics.com Fri Jan 5 08:22:18 2007 From: Sathiyanarayanan.R at in.flextronics.com (Sathiyanarayanan R) Date: Fri, 5 Jan 2007 15:22:18 +0800 Subject: [Expat-discuss] eXpat=> Can XML Validation be done with eXpat? Message-ID: Dear All, Can eXpat be used for validating the XML data with the internal as well as external DTD? XML_Parse() returns error only if the XML data is not well-formed. It does not raise any error, when the XML does not follow the internal DTD like changing the order of elements, etc. Kindly explain how I can validate the XML whether it follows the DTD (either internal or external). Regards, R.Sathiyanarayanan. Legal Disclaimer: The information contained in this message may be privileged and confidential. It is intended to be read only by the individual or entity to whom it is addressed or by their designee. If the reader of this message is not the intended recipient, you are on notice that any distribution of this message, in any form, is strictly prohibited. If you have received this message in error, please immediately notify the sender and delete or destroy any copy of this message From boris at codesynthesis.com Wed Jan 24 14:59:36 2007 From: boris at codesynthesis.com (Boris Kolpackov) Date: Wed, 24 Jan 2007 13:59:36 +0000 (UTC) Subject: [Expat-discuss] [ANN] CodeSynthesis XSD - open-source XML Schema to C++ compiler Message-ID: Hi, I am pleased to announce the availability of CodeSynthesis XSD 2.3.1. CodeSynthesis XSD is an open-source, cross-platform W3C XML Schema to C++ data binding compiler. Provided with a schema, it generates C++ classes that represent the given vocabulary as well as parsing and serialization code. You can then access the data stored in XML using types and functions that semantically correspond to your application domain rather than dealing with elements, attributes, and text in a direct representation of XML such as DOM or SAX. XSD supports both in-memory and stream-oriented processing models by implementing two C++ mappings: C++/Tree and C++/Parser. The C++/Tree mapping represents the information stored in XML instance documents as a tree-like, in-memory data structure. The C++/Parser mapping generates 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. The C++/Parser mapping supports Expat as the underlying XML parser. The following page lists a number of benchmark results that compare the performance and footprint of XSD-generated validation code running on top of Expat to various validating XML parsers: http://www.codesynthesis.com/projects/xsdbench/ XSD is available on AIX, GNU/Linux, HP-UX, Mac OS X, Solaris, and Windows. Supported C++ compilers include: GNU g++, HP aCC, IBM XL C++, Intel C++, Sun C++, and MS Visual C++. More information as well as precompiled binaries for all supported platforms are available from: http://www.codesynthesis.com/products/xsd/ Best Regards, Boris Kolpackov From ramamurthy.suresh at wipro.com Tue Jan 30 04:55:25 2007 From: ramamurthy.suresh at wipro.com (ramamurthy.suresh at wipro.com) Date: Tue, 30 Jan 2007 09:25:25 +0530 Subject: [Expat-discuss] Reg: Segmentation Fault in Expat 2.0.0 Message-ID: <438662DA48DCAA41B1DF648BD4BD76C00627B458@CHN-SNR-MBX01.wipro.com> Hi, Im using Expat - 2.0.0. Initially i tried to test the example code provided in the package (expat-2.0.0/examples). I call the main function provided by with in a loop. I wrote my own main, from that i call it. First threetimes it parses the xml file correctly, in the fourth time while allocating memory for the dataBuf (XML_Char) it receives SIGSEGV. The program then terminates with a Segmentation fault. Is this a bug in Expat? If it so can be fixed? Thanks in advance Suresh R. 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 madeshg at soc-soft.com Tue Jan 30 06:51:24 2007 From: madeshg at soc-soft.com (madeshg at soc-soft.com) Date: Tue, 30 Jan 2007 11:21:24 +0530 Subject: [Expat-discuss] Reg: Segmentation Fault in Expat 2.0.0 Message-ID: <4BF47D56A0DD2346A1B8D622C5C5902C0233DBF9@soc-mail.soc-soft.com> Hi, The memory allocation function maintains information about allocated memory. A common scheme is to place this data as a prefix and/or suffix to the allocated block. Depending on the implementation, there may be some slack added to the amount of memory you actually request, leaving a little buffer around these fence posts. Anyway, if you write more data than you have allocated storage for, these data areas get corrupted. Then, when you do the free, memory allocate function acts on erroneous information, and seg faults. Since there isn't a immediate problem on overwriting the fence post, this can cause seemingly random errors. Regards, Madesh G. -----Original Message----- From: ramamurthy.suresh at wipro.com [mailto:ramamurthy.suresh at wipro.com] Sent: Tuesday, January 30, 2007 9:25 AM To: expat-discuss at libexpat.org Subject: [Expat-discuss] Reg: Segmentation Fault in Expat 2.0.0 Hi, Im using Expat - 2.0.0. Initially i tried to test the example code provided in the package (expat-2.0.0/examples). I call the main function provided by with in a loop. I wrote my own main, from that i call it. First threetimes it parses the xml file correctly, in the fourth time while allocating memory for the dataBuf (XML_Char) it receives SIGSEGV. The program then terminates with a Segmentation fault. Is this a bug in Expat? If it so can be fixed? Thanks in advance Suresh R. 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 _______________________________________________ Expat-discuss mailing list Expat-discuss at libexpat.org http://mail.libexpat.org/mailman/listinfo/expat-discuss