From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/79199 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: XML and Lua/Ctx Date: Wed, 14 Nov 2012 16:50:50 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1426687742==" X-Trace: ger.gmane.org 1352908263 19435 80.91.229.3 (14 Nov 2012 15:51:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 14 Nov 2012 15:51:03 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Nov 14 16:51:13 2012 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TYfF7-0005Hq-Aa for gctc-ntg-context-518@m.gmane.org; Wed, 14 Nov 2012 16:51:09 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 8CF7410278; Wed, 14 Nov 2012 16:50:59 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id TcSPaBHybJGn; Wed, 14 Nov 2012 16:50:53 +0100 (CET) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 4A71F10223; Wed, 14 Nov 2012 16:50:53 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 89E3110223 for ; Wed, 14 Nov 2012 16:50:52 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 3NUCmcuzenRa for ; Wed, 14 Nov 2012 16:50:51 +0100 (CET) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 78F2F101FA for ; Wed, 14 Nov 2012 16:50:51 +0100 (CET) Original-Received: from mail-ee0-f41.google.com (mail-ee0-f41.google.com [74.125.83.41]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id qAEFoobT027833 for ; Wed, 14 Nov 2012 16:50:50 +0100 Original-Received: by mail-ee0-f41.google.com with SMTP id d41so454360eek.14 for ; Wed, 14 Nov 2012 07:50:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=Vf134rRzlzrhzQaF8HFVj1m0dO8Hz2ADhfZgjFXgFnM=; b=lMpmXNy0x0BmuPXoMUeTv1uF/qhjWpsBjPnAzwpArPUBBfFTe1A7O6IlzkG8RW7sjW uXfLJXs2lkcEDy04b7RW7G1KHoaU8VbVYS92i28agA3ZvTVRSbJKofYabdI3IwAtEy4z LhQUTk2/fVm70aDxALqTOXe9ZlaAVMP27zpiyaLPYoRD98aSZRSd6j6QIurjyvrao/mt FQI8ubPiIelVAbO96Rk03NQwJdKE44a3lkcUC11x/93QhMtz6dhs5pO9qZENUYAyYNfM YqsH08jV1weJ2OtpizfTTirXPp4s0jjGD8/HVc6HjLMLNaqp3ltkmJtXI0uSeC9v6MZI 0cdw== Original-Received: by 10.14.1.69 with SMTP id 45mr88514577eec.23.1352908250221; Wed, 14 Nov 2012 07:50:50 -0800 (PST) Original-Received: by 10.223.192.193 with HTTP; Wed, 14 Nov 2012 07:50:50 -0800 (PST) In-Reply-To: X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=74.125.83.41; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07InrOOHC - efeb02f91451 - 20121114 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:79199 Archived-At: --===============1426687742== Content-Type: multipart/alternative; boundary=047d7b622570ab0e7004ce767fc8 --047d7b622570ab0e7004ce767fc8 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On Wed, Nov 14, 2012 at 4:44 PM, Proch=C3=A1zka Luk=C3=A1=C5=A1 Ing. - Pont= ex s. r. o. < LPr@pontex.cz> wrote: > Hello, > > I've read that when Ctx is to process a XML file, the whole XML tree is > loaded first and processed as wanted. > > I'd need to process a XML file which represents an Excel workbook saved a= s > .xml. > > When working in pure Lua, I'm using Expat library ( > http://matthewwild.co.uk/**projects/luaexpat/index.html) > which allow to create a parser with callbacks (e.g. StartElement(), > StopElement(), CharacterData()...). > > It processes the .xml file on-the-go. > > However, this solution cannot be used with Ctx as it causes Ctx to crash. > Windows , Linux or MacOS ? --047d7b622570ab0e7004ce767fc8 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


On Wed, N= ov 14, 2012 at 4:44 PM, Proch=C3=A1zka Luk=C3=A1=C5=A1 Ing. - Pontex s. r. = o. <LPr@pontex.cz> wrote:
Hello,

I've read that when Ctx is to process a XML file, the whole XML tree is= loaded first and processed as wanted.

I'd need to process a XML file which represents an Excel workbook saved= as .xml.

When working in pure Lua, I'm using Expat library (http://matt= hewwild.co.uk/projects/luaexpat/index.html) which allow to creat= e a parser with callbacks (e.g. StartElement(), StopElement(), CharacterDat= a()...).

It processes the .xml file on-the-go.

However, this solution cannot be used with Ctx as it causes Ctx to crash.
Windows , Linux or MacOS ?
--047d7b622570ab0e7004ce767fc8-- --===============1426687742== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________ --===============1426687742==--