From CH6898@momail.sbc.com Wed Nov 8 23:01:52 2000 Return-Path: Mailing-List: contact general-help@xml.apache.org; run by ezmlm Delivered-To: mailing list general@xml.apache.org Received: (qmail 65035 invoked from network); 8 Nov 2000 23:01:52 -0000 Received: from swbcs005.sbc.com (209.184.192.25) by locus.apache.org with SMTP; 8 Nov 2000 23:01:52 -0000 Received: from chpsmtp2.sbc.com (chpsmtp2.sbc.com [132.201.82.89]) by swbcs005.sbc.com (8.9.3/8.8.8) with ESMTP id RAA13261 for ; Wed, 8 Nov 2000 17:01:25 -0600 (CST) Received: from sbc.com (localhost [127.0.0.1]) by chpsmtp2.sbc.com (8.10.1/8.10.1) with ESMTP id eA8N1OI03786 for ; Wed, 8 Nov 2000 17:01:24 -0600 (CST) Received: from msgstlhub02.sbc.com (msgstlhub02.sbc.com [132.201.87.59]) by chpsmtp2.sbc.com (8.10.1/8.10.1) with ESMTP id eA8N1Et03637 for ; Wed, 8 Nov 2000 17:01:14 -0600 (CST) Received: by msgstlhub02.sbc.com with Internet Mail Service (5.5.2650.21) id ; Wed, 8 Nov 2000 17:01:14 -0600 Message-ID: <351FB1C90471D311BCC800508B07636902A7F838@d072043.sbc.com> From: "HERRICK, CHUCK (SBCSI)" To: "'general@xml.apache.org'" Subject: RE: Really new, seeking advice. Date: Wed, 8 Nov 2000 17:01:12 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain; charset="ISO-8859-1" X-Spam-Rating: locus.apache.org 1.6.2 0/1000/N 1. If your config file is pretty large and you want to get only a small part out of it, use SAX. 2. If your config file is not very large and you want pretty much everything in it during the application's run (most likely), use DOM. 3. Given my druthers, I'd use Xerces-J and avoid Xerces-C like the plague. Your application may be in C, however, so you'd be stuck, pretty much. 4. Take a look at the Xerces example programs. 5. If you pretty much exclusively control/create/edit the config files, don't validate. 6. If you expect users of the application to edit the config file so they can run the application, and you don't want to be holding their hands while they edit the config file, by all means validate. Now you're going to have to figure out where the DTD will live.... that's always fun. -----Original Message----- From: Richardella, Anthony [mailto:Anthony_Richardella@sra.com] Sent: Wednesday, November 08, 2000 3:23 PM To: 'general@xml.apache.org' Subject: Really new, seeking advice. I'm pretty new to xml and I'm looking to convert a config file for an application into XML. I wondering how I should parse the config. Should I validate or not? For a mere config file which interface should I use SAX, SAX2 or DOM? Would DOM be overkill? Also do anyone know of any web pages with a good tutorial of how to program using Xerces-C? Thanks, Anthony --------------------------------------------------------------------- In case of troubles, e-mail: webmaster@xml.apache.org To unsubscribe, e-mail: general-unsubscribe@xml.apache.org For additional commands, e-mail: general-help@xml.apache.org