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, [EMAIL PROTECTED] [EMAIL PROTECTED]: 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 -- [EMAIL PROTECTED] mailing list
RE: [gentoo-user] OT: An XML Question
-Original Message- From: Galevsky [mailto:[EMAIL PROTECTED] 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, [EMAIL PROTECTED] [EMAIL PROTECTED]: 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 ^_^ -- [EMAIL PROTECTED] mailing list
Re: [gentoo-user] OT: An XML Question
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, [EMAIL PROTECTED] [EMAIL PROTECTED]: -Original Message- From: Galevsky [mailto:[EMAIL PROTECTED] 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, [EMAIL PROTECTED] [EMAIL PROTECTED]: 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 ^_^ -- [EMAIL PROTECTED] mailing list -- [EMAIL PROTECTED] mailing list
[gentoo-user] OT: An XML Question
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