Re: XML for VMS



JF Mezei wrote:
Really basic question here:

Does the amount of work to install/compile and then learn and build all the structures and routines to use those "read made" XML parsers exceed the amount of time it takes to simply write code to parse the one XML format that you have to parse and take the values directly into your application's structures ?

Short answer: no.

Long answer: Using existing and debugged libraries -- such as libxml2 -- is usually more efficient. Rolling your own custom source code when appropriate and appropriately-licensed source code is available, documented, maintained, and fully functional? That's not the approach I'd typically recommend.

The existing XML libraries provide flexibility beyond the basic parsing, including syntax verification, ease of extensibility and any number of useful capabilities.

The corollary here is the just-one-more-fix trap that folks fall into with the comma-separated list morass. CSV files can become surprisingly evil and twisty constructs, in the general case.

--
www.HoffmanLabs.com
Services for OpenVMS
.



Relevant Pages

  • Re: Parsing large amounts of data (200,000 entries) with XML?
    ... upon the actual amount of processing that is going on. ... I didn't add queries into that list because queries are one of two ... XML is going to be a bit slower than reading from a linked list ... Dim aTimeAs Double ...
    (microsoft.public.vb.general.discussion)
  • Re: xml as intermediate representation
    ... > [I agree that if you're going to pass stuff from phase to phase, XML ... otherwise have a tendency to tie you closely in to both the compiler ... writers preferred language and data model. ... data would give a tremendous amount of flexibility, ...
    (comp.compilers)
  • Re: Invalid character in XML
    ... > because of an illegal character for the encoding type. ... sensible amount of memory). ... toolbag of any heavy XML user for the occasions when other methods fail. ... > trying to extract on this run through, so I can safely ignore it. ...
    (microsoft.public.dotnet.xml)
  • Re: Binary of flat File VS CE Database ?
    ... I agree that you probably wouldln't be happy with XML, ... encryption, for that amount of data. ... >> if the amount of data isn't large you could consider XML and CSV. ...
    (microsoft.public.pocketpc.developer)
  • Re: Binary of flat File VS CE Database ?
    ... I agree that you probably wouldln't be happy with XML, ... encryption, for that amount of data. ... >> if the amount of data isn't large you could consider XML and CSV. ...
    (microsoft.public.windowsce.app.development)