Fw: [Expat-discuss] Read XML like file

Régis St-Gelais regis.st-gelais at laubrass.com
Tue Nov 18 07:33:09 EST 2003


Here is a reply I got from Tim Fornoville in private e-mail, I am making it public. I guess he forgot to add the expat list in the send to.

From: tim fornoville 
To: Régis_St-Gelais 
Sent: Monday, November 17, 2003 3:28 PM
Subject: Re: [Expat-discuss] Read XML like file


Régis_St-Gelais <regis.st-gelais at laubrass.com> schrieb am 14.11.03 16:49:53:
> 
> I would like to use expat to read an XML file that does not have a root
> element.

does an xml-file "always" need a root?  

> This file contains records, for example it could be some ting like that:
> 
> <REC><TIME_STAMP>10:40:00</TIME_STAMP><DATA>some data</DATA></REC>
> <REC><TIME_STAMP>10:40:23</TIME_STAMP><DATA>some other data</DATA></REC>
> <REC><TIME_STAMP>10:40:35</TIME_STAMP><DATA>some other data to</DATA></REC>
> ...
> <REC><TIME_STAMP>10:45:12</TIME_STAMP><DATA>some data</DATA></REC>
> 
> 
> That way, records can be appened to the file without having to read it
> completely and rewrite with the new records
> 
> Is this possible, even if it is not fully xml compliant?

I see now reason why it wouldn`t work... 

tim
> 
> TIA
> --
> Régis St-Gelais
> 
> 
> 
> 
> _______________________________________________
> Expat-discuss mailing list
> Expat-discuss at libexpat.org
> http://mail.libexpat.org/mailman/listinfo/expat-discuss


______________________________________________________________________________
Horoskop, Comics, VIPs, Wetter, Sport und Lotto im WEB.DE Screensaver1.2
Kostenlos downloaden: http://screensaver.web.de/?mc=021110



More information about the Expat-discuss mailing list