Reading an XML file


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

Posted by Jim Guerber on October 07, 2008 at 09:48:36: Uploaded files: 2

Starting a new thread about reading xml files here.

Here are 2 programs that take apart a raw xml file and split it into separate xml clauses to be further parsed by another program.

As you can see, the Comet32 program is dead simple. It just reads the whole file into one dynamic string and uses Comet's string functions to parse it.

The Comet16 program requires that the file be a sequential file with 1024 byte records. It spends much effort making sure that the last record contains a full 1024 bytes. If it did not, the program would fail with an error 87 (crash).


The input is an xml file known to comet as a sequential file with 1024 byte records.


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?  

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):





Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]