* [gentoo-user] OT: An XML Question
@ 2007-05-29 1:00 burlingk
2007-05-29 7:21 ` Galevsky
0 siblings, 1 reply; 4+ messages in thread
From: burlingk @ 2007-05-29 1:00 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 656 bytes --]
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
[-- Attachment #2: Type: text/html, Size: 2093 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] OT: An XML Question
2007-05-29 1:00 [gentoo-user] OT: An XML Question burlingk
@ 2007-05-29 7:21 ` Galevsky
0 siblings, 0 replies; 4+ messages in thread
From: Galevsky @ 2007-05-29 7:21 UTC (permalink / raw
To: gentoo-user
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 <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
^ permalink raw reply [flat|nested] 4+ messages in thread
* RE: [gentoo-user] OT: An XML Question
@ 2007-05-29 9:15 burlingk
2007-05-29 9:25 ` Galevsky
0 siblings, 1 reply; 4+ messages in thread
From: burlingk @ 2007-05-29 9:15 UTC (permalink / raw
To: gentoo-user
> -----Original Message-----
> From: Galevsky [mailto:galevsky@gmail.com]
> Sent: Tuesday, May 29, 2007 4:21 PM
> To: gentoo-user@lists.gentoo.org
> Subject: Re: [gentoo-user] OT: An XML Question
>
>
> 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 <burlingk@cv63.navy.mil>:
> >
> >
> > Are there any really good XML tutorials on the web, or
> perhaps a book
> > that is actually useful?
<snip>
Thanks for the info!
I think I may look into the DOM approach. ^_^
Does(do?) libxml or libxml2 have a DOM interface? I know that
libxml2 is already on the system (part of the base install), so
it may be a good place to look. :) Does anyone know of a good
tutorial site with a .org or .edu web address? The firewall I
am stuck behind at the moment has some funky restrictions. :P
^_^
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [gentoo-user] OT: An XML Question
2007-05-29 9:15 burlingk
@ 2007-05-29 9:25 ` Galevsky
0 siblings, 0 replies; 4+ messages in thread
From: Galevsky @ 2007-05-29 9:25 UTC (permalink / raw
To: gentoo-user
Well, a "man libxml2" gives you all that you need:
Documentation for libxml is available on-line at
http://www.xmlsoft.org/
;o)
Gal'
2007/5/29, burlingk@cv63.navy.mil <burlingk@cv63.navy.mil>:
>
>
> > -----Original Message-----
> > From: Galevsky [mailto:galevsky@gmail.com]
> > Sent: Tuesday, May 29, 2007 4:21 PM
> > To: gentoo-user@lists.gentoo.org
> > Subject: Re: [gentoo-user] OT: An XML Question
> >
> >
> > 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 <burlingk@cv63.navy.mil>:
> > >
> > >
> > > Are there any really good XML tutorials on the web, or
> > perhaps a book
> > > that is actually useful?
> <snip>
>
> Thanks for the info!
> I think I may look into the DOM approach. ^_^
> Does(do?) libxml or libxml2 have a DOM interface? I know that
> libxml2 is already on the system (part of the base install), so
> it may be a good place to look. :) Does anyone know of a good
> tutorial site with a .org or .edu web address? The firewall I
> am stuck behind at the moment has some funky restrictions. :P
>
> ^_^
>
> --
> gentoo-user@gentoo.org mailing list
>
>
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2007-05-29 9:30 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-29 1:00 [gentoo-user] OT: An XML Question burlingk
2007-05-29 7:21 ` Galevsky
-- strict thread matches above, loose matches on Subject: below --
2007-05-29 9:15 burlingk
2007-05-29 9:25 ` Galevsky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox