[Expat-discuss] Read XML like file

Greg Martin Greg.Martin at TELUS.COM
Tue Nov 18 09:24:57 EST 2003


I think the problem is that a valid XML file only has one root (by definition). Why not append a root tag to the beginning and end before parsing?


-----Original Message-----
From: Régis St-Gelais [mailto:regis.st-gelais at laubrass.com]
Sent: Tuesday, November 18, 2003 7:08 AM
To: Karl Waclawek; expat-discuss at libexpat.org
Subject: Re: [Expat-discuss] Read XML like file


  ----- Original Message ----- 
  From: Karl Waclawek 
  To: Régis St-Gelais ; expat-discuss at libexpat.org 
  Sent: Tuesday, November 18, 2003 8:59 AM
  Subject: Re: [Expat-discuss] Read XML like file


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

>Yes.

Is there no way to tell expat to parse a file that have multiple roots?

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>


Regis

_______________________________________________
Expat-discuss mailing list
Expat-discuss at libexpat.org
http://mail.libexpat.org/mailman/listinfo/expat-discuss





More information about the Expat-discuss mailing list