From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.62) (envelope-from ) id 1Hsw6a-00003M-3y for garchives@archives.gentoo.org; Tue, 29 May 2007 07:26:56 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.0/8.14.0) with SMTP id l4T7PfPC018932; Tue, 29 May 2007 07:25:41 GMT Received: from wr-out-0506.google.com (wr-out-0506.google.com [64.233.184.225]) by robin.gentoo.org (8.14.0/8.14.0) with ESMTP id l4T7LRiY014275 for ; Tue, 29 May 2007 07:21:28 GMT Received: by wr-out-0506.google.com with SMTP id 76so571831wra for ; Tue, 29 May 2007 00:21:27 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Fz8lK00/ccAYAv319J9hr6U7uViCxTvR0u7TXQxo69J+UU/QpSaDQANqV+VKBZPxYivIoCnMR43iupxOyhbA1BcpFnbUcpPdZSknxu4ViEb7cKwlv9WbArydJEzD90cZYkDAC9MHStCG7fv7/CrOqz+DpiaO5wu2dl9p44spzFM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=E2mxnGTnYZeV0gV1wkB6fM4163XXYU9LGxV4bmDXIRX0tLOi2m3UKtcJU7J1ST0ch4LcHUy3X1kpOWA1s7md2QsyVQMkip/TlrbiutzyEPN8G6S+BkxNOjnH2xWoyW7m9XYDlGRid/wfDP7CliGf3Mt3/BiQri3Yq9bdWB266YM= Received: by 10.143.41.12 with SMTP id t12mr201222wfj.1180423287252; Tue, 29 May 2007 00:21:27 -0700 (PDT) Received: by 10.142.83.14 with HTTP; Tue, 29 May 2007 00:21:27 -0700 (PDT) Message-ID: Date: Tue, 29 May 2007 09:21:27 +0200 From: Galevsky To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] OT: An XML Question In-Reply-To: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: X-Archives-Salt: b7694027-1198-4b79-933a-421a3bd17772 X-Archives-Hash: 7e44cf9b937f12a4d8487ff33357c74c Hi, you can learn the xml concepts at http://www.w3schools.com/. Then, depending on the language you choose, there is lots of libs to deal with xml in many languages. Though you always have two different ways of parsing your xml file: a SAX parser approach, that runs on an element-by-element process, retrieving each element with no view on the next ones. The second way is a DOM object builder, parsing the xml file as a whole, then giving you back the whole tree as an object that can browse later with a set of methods. The later is faster to get all the information of the xml, but takes more memory since the whole xml tree must be built first. You have to look for the libs of your language now for further details, but the choice between the two is crucial. I remind a Xmlchecker java tool I wrote to run no-diff tests.... I implemented first with jdom, and it was good..... until I had to deal with 300 Mb files ... and rewrite the whole browsing engine with SAX. Gal' 2007/5/29, burlingk@cv63.navy.mil : > > > Are there any really good XML tutorials on the web, or perhaps a book that is actually useful? > > Also, which libs do people preffer for dealing with XML? > > I am contemplating messing arround with XML for data files for a project I want to mess with. > > The project would involve loading objects into a dynamic list. I do not think I want to deal with the XML file in real time, as I am not sure how fast that would be, but rather load the data into memory, then save it to the XML file at save points. > > :-) My views may change as time goes by, but for now I am learning, and starting to do research. ^_^ > > > > ---- > Kenneth M. Burling Jr > -- gentoo-user@gentoo.org mailing list