From sanjeevi at embeddedwireless.com Fri Sep 4 05:49:20 2009 From: sanjeevi at embeddedwireless.com (sanjeevi) Date: Fri, 4 Sep 2009 11:49:20 +0800 Subject: [Expat-discuss] Creating xml documnets. Message-ID: Dear folks, I am new to C programming language and xml. I need to create and parse the xml documents using 'C'. Can I use expat library to create and reading the xml documents? My special intention is creation of xml documents with dynamic data. Please give suggestions to me. Thanks & Regards Sanjeevi. From sanjeevi at embeddedwireless.com Fri Sep 4 08:23:01 2009 From: sanjeevi at embeddedwireless.com (sanjeevi) Date: Fri, 4 Sep 2009 14:23:01 +0800 Subject: [Expat-discuss] Creating xml documnets. Message-ID: <0D64AA33CE4A41EA9320257E7B876424@klwsxp100> Dear folks, I am new to C programming language and xml. I need to create and parse the xml documents using 'C'. Can I use expat library to create and reading the xml documents? My special intention is creation of xml documents with dynamic data. Please give suggestions to me. Thanks & Regards Sanjeevi. From sanjeevi at embeddedwireless.com Fri Sep 4 08:28:52 2009 From: sanjeevi at embeddedwireless.com (sanjeevi) Date: Fri, 4 Sep 2009 14:28:52 +0800 Subject: [Expat-discuss] Creating xml documnets. Message-ID: Dear folks, I am new to C programming language and xml. I need to create and parse the xml documents using 'C'. Can I use expat library to create and reading the xml documents? My special intention is creation of xml documents with dynamic data. Please give suggestions to me. Thanks & Regards Sanjeevi. From aleix at member.fsf.org Fri Sep 4 10:26:26 2009 From: aleix at member.fsf.org (=?UTF-8?Q?Aleix_Conchillo_Flaqu=C3=A9?=) Date: Fri, 4 Sep 2009 10:26:26 +0200 Subject: [Expat-discuss] Creating xml documnets. In-Reply-To: References: Message-ID: On Fri, Sep 4, 2009 at 05:49, sanjeevi wrote: > Dear folks, > > ? ? ? ? ? ? ? ? I am new to C programming language and xml. I need to > create and parse the xml documents using 'C'. Can I use expat library to > create and reading the xml documents? My special intention is creation of > xml documents with dynamic data. Please give suggestions to me. > Some propaganda by my side, but you can use the SCEW library. It allows you to create dynamic XML documents and it parses them using Expat. It would be good, though, that you use the development branch, as SCEW 1.0 is really near and the API has changed a bit and is now quite stable. But if you want to stay stable, just download the latest version, you should not have any problems upgrading your source code when SCEW 1.0 shows up. Best regards, Aleix From rcdailey at gmail.com Sat Sep 19 23:53:27 2009 From: rcdailey at gmail.com (Robert Dailey) Date: Sat, 19 Sep 2009 16:53:27 -0500 Subject: [Expat-discuss] Inconsistency in expat? Message-ID: <496954360909191453p65e764ddyf754e31903e8f8fe@mail.gmail.com> Hello, I see that in the expat_static.dsp project located in the 'lib' directory of the neon tarball distribution the following two preprocessor directives are defined: _LIB COMPILED_FROM_DSP However, according to expat_external.h, the macro XML_STATIC determines if 'dllimport' is used or not. How are the DSP projects building static versions of expat without having this defined? Also, I can't seem to find out where dllexport is being set. Additionally, what is the difference between the identically named files in /lib and /Source/lib? Why duplicate these? --------- Robert Dailey From jeremy at omsys.com Sun Sep 20 01:54:21 2009 From: jeremy at omsys.com (Jeremy H. Griffith) Date: Sat, 19 Sep 2009 16:54:21 -0700 Subject: [Expat-discuss] Handling pernicious mixed content Message-ID: As required by the XML spec, expat reports all whitespace within elements. In most cases, it's easy to determine if the whitespace should be retained or not. If the element can contain text (#PCDATA), keep it; if the element cannot contain text, discard it. But there are two elements in DITA (and one in DocBook) that create ambiguity: the table cell wrapper, in DITA, and the lits element wrapper,
  • in DITA. DocBook calls it "pernicious mixed content" in Entry (in Norm Walsh's O'Reilly DocBook book, on page 211). For each, the content can include text but also block elements. So if you have:
    • Something.

    • or something else. and normalize whitespace, you'd expect: *Something, * or something else. not: * Something, * or something else. or: *Something, *or something else. This is acknowledged as an intractable problem in DocBook, for the SGML parser, but clearly those using the parsers must solve it in some way. One answer is, if you see a block element within the wrapper, discard the preceding whitespace. Is there a better one? Thanks! -- Jeremy H. Griffith, at Omni Systems Inc. http://www.omsys.com/ From mohan43u at gmail.com Mon Sep 21 18:57:33 2009 From: mohan43u at gmail.com (Mohan R) Date: Mon, 21 Sep 2009 22:27:33 +0530 Subject: [Expat-discuss] A small tool 'Xml2Line' using 'libexpat' (Need some comments) Message-ID: Hi, I created a small tool 'Xml2Line'. 'Xml2Line' will take standard input and give output in such a way that, other unix filters can easily operate on that xml data. The format of Xml2Line will be like below, data to tag1[attribute=value]|tag2[attribute=value]{data} Here is the source, http://github.com/mohan43u/Xml2Line I don't know how much useful this output format is, but like to get inputs from the experts to find the best format for other unix line commands(especially 'grep') to operate on XML data. Waiting for your comments, Thanks, Mohan R. From jzhang at ximpleware.com Wed Sep 23 21:26:35 2009 From: jzhang at ximpleware.com (jimmy Zhang) Date: Wed, 23 Sep 2009 12:26:35 -0700 Subject: [Expat-discuss] Expat-discuss Digest, Vol 113, Issue 3 References: Message-ID: <01b301ca3c83$c4773710$0402a8c0@your55e5f9e3d2> why don't you just use xpath? /tag1[@attribute=value]/tag2[@attribute=value]/text() ----- Original Message ----- From: To: Sent: Wednesday, September 23, 2009 3:00 AM Subject: Expat-discuss Digest, Vol 113, Issue 3 > Send Expat-discuss mailing list submissions to > expat-discuss at libexpat.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.libexpat.org/mailman/listinfo/expat-discuss > or, via email, send a message with subject or body 'help' to > expat-discuss-request at libexpat.org > > You can reach the person managing the list at > expat-discuss-owner at libexpat.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Expat-discuss digest..." > > > Today's Topics: > > 1. A small tool 'Xml2Line' using 'libexpat' (Need some comments) > (Mohan R) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Mon, 21 Sep 2009 22:27:33 +0530 > From: Mohan R > To: expat-discuss at libexpat.org > Subject: [Expat-discuss] A small tool 'Xml2Line' using 'libexpat' > (Need some comments) > Message-ID: > Content-Type: text/plain; charset=ISO-8859-1 > > Hi, > > I created a small tool 'Xml2Line'. 'Xml2Line' will take standard input > and give output in such a way that, other unix filters can easily > operate on that xml data. The format of Xml2Line will be like below, > > > data > > > to > > tag1[attribute=value]|tag2[attribute=value]{data} > > Here is the source, http://github.com/mohan43u/Xml2Line > > I don't know how much useful this output format is, but like to get > inputs from the experts to find the best format for other unix line > commands(especially 'grep') to operate on XML data. > > Waiting for your comments, > > Thanks, > Mohan R. > > > > ------------------------------ > > _______________________________________________ > Expat-discuss mailing list > Expat-discuss at libexpat.org > http://mail.libexpat.org/mailman/listinfo/expat-discuss > > > End of Expat-discuss Digest, Vol 113, Issue 3 > ********************************************* > From ckane at intellitree.com Mon Sep 21 15:31:19 2009 From: ckane at intellitree.com (Coleman Kane) Date: Mon, 21 Sep 2009 09:31:19 -0400 Subject: [Expat-discuss] ExpatMM 1.0.2 release announcement Message-ID: <4AB78027.9020606@intellitree.com> Hello, You are receiving this email because you've communicated with me previously as an expatmm user. I would like to announce that I've released ExpatMM version 1.0.2 at http://devzone.intellitree.com/projects/expatmm/ The following minor changes were made (since 1.0.1): 1) Updates to automake's init that shouldn't affect normal users (select 'foreign' style in configure.ac) 2) Fixed the buffer initialization bug when sizeof(XML_Char) != sizeof(char) Please see the contained ChangeLog for complete history. -- Coleman Kane IntelliTree Solutions llc