Gentoo Archives: gentoo-user

From: Galevsky <galevsky@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] OT: An XML Question
Date: Tue, 29 May 2007 07:26:56
In Reply to: [gentoo-user] OT: An XML Question by
1 Hi,
3 you can learn the xml concepts at Then,
4 depending on the language you choose, there is lots of libs to deal
5 with xml in many languages. Though you always have two different ways
6 of parsing your xml file: a SAX parser approach, that runs on an
7 element-by-element process, retrieving each element with no view on
8 the next ones. The second way is a DOM object builder, parsing the xml
9 file as a whole, then giving you back the whole tree as an object that
10 can browse later with a set of methods. The later is faster to get all
11 the information of the xml, but takes more memory since the whole xml
12 tree must be built first. You have to look for the libs of your
13 language now for further details, but the choice between the two is
14 crucial. I remind a Xmlchecker java tool I wrote to run no-diff
15 tests.... I implemented first with jdom, and it was good..... until I
16 had to deal with 300 Mb files ... and rewrite the whole browsing
17 engine with SAX.
19 Gal'
22 2007/5/29, burlingk@×××××××××.mil <burlingk@×××××××××.mil>:
23 >
24 >
25 > Are there any really good XML tutorials on the web, or perhaps a book that is actually useful?
26 >
27 > Also, which libs do people preffer for dealing with XML?
28 >
29 > I am contemplating messing arround with XML for data files for a project I want to mess with.
30 >
31 > 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.
32 >
33 > :-) My views may change as time goes by, but for now I am learning, and starting to do research. ^_^
34 >
35 >
36 >
37 > ----
38 > Kenneth M. Burling Jr
39 >
40 --
41 gentoo-user@g.o mailing list