Re: [fpc-pascal] XML read

2011-06-15 Thread Marcos Douglas
On Tue, Jun 14, 2011 at 10:28 AM, Bart bartjun...@gmail.com wrote: My XmlToList procedure is based upon the XmlToTree example in the wiki. There are no memory leaks in my code (checked it with heaptrace). Hi Bart, Below is my simple way to get all Text for each Page:

Re: [fpc-pascal] XML read

2011-06-14 Thread Marcos Douglas
On Mon, Jun 13, 2011 at 6:48 PM, Bart bartjun...@gmail.com wrote: Attached a sample xml file created with TAddressBook. Hi Bart, Sorry for late. Thank you for addressbook.pp and test.xml files. I will study them. Marcos Douglas ___ fpc-pascal

Re: [fpc-pascal] XML read

2011-06-14 Thread Felipe Monteiro de Carvalho
The Wiki has some XML tutorials: http://wiki.lazarus.freepascal.org/XML_Tutorial -- Felipe Monteiro de Carvalho ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] XML read

2011-06-14 Thread Marcos Douglas
On Tue, Jun 14, 2011 at 10:12 AM, Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com wrote: The Wiki has some XML tutorials: http://wiki.lazarus.freepascal.org/XML_Tutorial Yes, I saw that. My doubt is how use a safe algorithm to parse my XML. See the first example Printing the

Re: [fpc-pascal] XML read

2011-06-14 Thread Bart
My XmlToList procedure is based upon the XmlToTree example in the wiki. There are no memory leaks in my code (checked it with heaptrace). Bart On 6/14/11, Marcos Douglas m...@delfire.net wrote: On Tue, Jun 14, 2011 at 10:12 AM, Felipe Monteiro de Carvalho felipemonteiro.carva...@gmail.com

Re: [fpc-pascal] XML read

2011-06-13 Thread Marcos Douglas
On Sat, Jun 11, 2011 at 5:52 AM, Michael Van Canneyt mich...@freepascal.org wrote: On Fri, 10 Jun 2011, Marcos Douglas wrote: Hi, What is the more simpler way to get all text in each paragraph in the XML below, using fcl-xml? For example: Page 1 --- Para 1: -1524 -888

Re: [fpc-pascal] XML read

2011-06-13 Thread Bart
I have some code that reads/writes an addressbook in XML format. I can attach if if you think it may be usefull to you. Bart On 6/13/11, Marcos Douglas m...@delfire.net wrote: On Sat, Jun 11, 2011 at 5:52 AM, Michael Van Canneyt mich...@freepascal.org wrote: On Fri, 10 Jun 2011, Marcos

Re: [fpc-pascal] XML read

2011-06-13 Thread Marcos Douglas
On Mon, Jun 13, 2011 at 11:47 AM, Bart bartjun...@gmail.com wrote: I have some code that reads/writes an addressbook in XML format. I can attach if if you think it may be usefull to you. OK, if you can I appreciate that. Some functions of fcl-web returns a new object... I have to be careful

Re: [fpc-pascal] XML read

2011-06-13 Thread Bart
Hi Marcos, OK, if you can I appreciate that. Some functions of fcl-web returns a new object... I have to be careful with memory leaks. See: addressbook.pp. Mind you, my code isn't web related, it just handles an xml-file. Bart unit AddressBook; {$mode objfpc}{$H+} interface uses

Re: [fpc-pascal] XML read

2011-06-13 Thread Bart
Attached a sample xml file created with TAddressBook. Bart ?xml version=1.0? AdresBoek Info ApplicatieVersie 3.0.0 RC1/Applicatie CopyRightCopyright 2011 by Flying Sheep Inc. amp; Bart Broersma/CopyRight WaarschuwingLET OP: Dit bestand moet in UTF-8 codering opgeslagen

Re: [fpc-pascal] XML read

2011-06-11 Thread Michael Van Canneyt
On Fri, 10 Jun 2011, Marcos Douglas wrote: Hi, What is the more simpler way to get all text in each paragraph in the XML below, using fcl-xml? For example: Page 1 --- Para 1: -1524 -888 -14/06/06 Para 2 -TEXT 2 Page 2 --- Para 1 --TEXT page 2 I need each

[fpc-pascal] XML read

2011-06-10 Thread Marcos Douglas
Hi, What is the more simpler way to get all text in each paragraph in the XML below, using fcl-xml? For example: Page 1 --- Para 1: -1524 -888 -14/06/06 Para 2 -TEXT 2 Page 2 --- Para 1 --TEXT page 2 I need each paragraph in a TStringList. ?xml version=1.0