Thanks Sergey. I tought that was why my program was stopping with an assertion in procedure TNodePool.AddExtent of dom.pp, the assertion dissapears when I work with smaller XML files.
BTW: the file worked with older versions of fcl-xml, now I'm using the trunk version because it no longer deppends on AVL_Tree, that wasn'n thread safe. I attached the file I'm using for testing. Leonardo M. Ramé http://leonardorame.blogspot.com --- On Thu, 1/14/10, Sergei Gorelkin <sergei_gorel...@mail.ru> wrote: > From: Sergei Gorelkin <sergei_gorel...@mail.ru> > Subject: Re: [fpc-devel] XML Stream capacity > To: "FPC developers' list" <fpc-devel@lists.freepascal.org> > Date: Thursday, January 14, 2010, 12:51 PM > Leonardo M. Ramé wrote: > > I'm using fcl-xml to parse a XML data from a > TMemoryStream/TStringStream and noted it can parse streams > with a maximum capacity of 4096 bytes, why can't it receive > bigger streams?. > > > > The maximum capacity is defined in the constructor of > TXMLStreamInputSource, in XMLRead.pp. > > > This value has nothing to do with total possible stream > size, it is only the size of buffer used while reading. > The maximum size of XML data that can be read with DOM on a > 32-bit machine is about 40 to 150 MBytes (depending on the > data structure). > > Sergei > _______________________________________________ > fpc-devel maillist - fpc-devel@lists.freepascal.org > http://lists.freepascal.org/mailman/listinfo/fpc-devel >
<?xml version="1.0"?> <HISRISSolExa> <CodTurno>283355</CodTurno> <FechaDesde>2009-10-15 08:20:00</FechaDesde> <FechaHasta>2009-10-15 08:39:00</FechaHasta> <TipoIngreso>A</TipoIngreso> <Equipo> <Nombre>MAMCH22S - ELSCINT</Nombre> <Modalidad>CR</Modalidad> </Equipo> <Especialidad><![CDATA[MAMOGRAFIA]]></Especialidad> <Paciente> <NroFcr>18682009</NroFcr> <Sexo>U</Sexo> <Nombres><![CDATA[GRACIELA]]></Nombres> <ApellidoPaterno><![CDATA[MORO]]></ApellidoPaterno> <FechaNacimiento>1947-08-04</FechaNacimiento> <Domicilio><![CDATA[25 DE MAYO 154]]></Domicilio> <Telefono><![CDATA[4881137 ]]></Telefono> <TipoDocumento>D.N.I.</TipoDocumento> <NroDocumento>18682009</NroDocumento> </Paciente> <FinanciadorPlan> <Financiador><![CDATA[APROSS ]]></Financiador> </FinanciadorPlan> <ProfesionalDeriva> <Nombres><![CDATA[VALDEZ CARLOS]]></Nombres> <ApellidoPaterno><![CDATA[SICCHAR]]></ApellidoPaterno> </ProfesionalDeriva> <Prestaciones> <Prestacion> <Cantidad>2</Cantidad> <Prestacion><![CDATA[MAMOGRAFIA UNILATERAL F Y P]]></Prestacion> <Codigo>340601</Codigo> </Prestacion> </Prestaciones> <FechaCompromiso>2009-10-17 08:20:00</FechaCompromiso> </HISRISSolExa>
_______________________________________________ fpc-devel maillist - fpc-devel@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-devel