Re: [fpc-pascal] XML Iteration

2010-05-10 Thread Marco van de Voort
On Sun, May 02, 2010 at 09:38:55PM +0100, Frank Church wrote: Are we using the same version? Marco's notes refer to updates made in FPC 2.4.1 and I am using 2.2.4 with Lazarus 0.9.28 2.2.4 misses the bulk of Sergei's fixes. If you are serious about fcl-xml, upgrade, preferably to todays 2.4.1

Re: [fpc-pascal] XML Iteration

2010-05-04 Thread Luiz Americo Pereira Camara
Lee Jenkins escreveu: Frank Church wrote: I am having some problems with XPath. EvaluateXPathExpression raises exceptions with some search strings and I am not sure if it is my limited knowledge of XPath, or a buggy XPath implementation. The attached demo uses the example from

Re: [fpc-pascal] XML Iteration

2010-05-02 Thread Lee Jenkins
Frank Church wrote: I am having some problems with XPath. EvaluateXPathExpression raises exceptions with some search strings and I am not sure if it is my limited knowledge of XPath, or a buggy XPath implementation. The attached demo uses the example from

Re: [fpc-pascal] XML Iteration

2010-05-02 Thread Frank Church
I have run it with some success. What I find missing now is the ability to give the correct output for a an index value, such as //bookstore/book[1]/title. It works on the w3schools version but not in the FPC one. Are we on the same versions of Lazarus and XPath? On 2 May 2010 17:37, Lee

Re: [fpc-pascal] XML Iteration

2010-05-02 Thread Lee Jenkins
Frank Church wrote: I have run it with some success. What I find missing now is the ability to give the correct output for a an index value, such as //bookstore/book[1]/title. It works on the w3schools version but not in the FPC one. Try changing to only using one front slash instead of

Re: [fpc-pascal] XML Iteration

2010-05-02 Thread Frank Church
When I try it the /bookstore/book[price35.00]/title I get the error Conversion from node set to number not possible. The error is the same whether I use a // or a / . Are we using the same version? Marco's notes refer to updates made in FPC 2.4.1 and I am using 2.2.4 with Lazarus 0.9.28 On 2

Re: [fpc-pascal] XML Iteration

2010-05-02 Thread Lee Jenkins
Frank Church wrote: When I try it the /bookstore/book[price35.00]/title I get the error Conversion from node set to number not possible. The error is the same whether I use a // or a / . Are we using the same version? Marco's notes refer to updates made in FPC 2.4.1 and I am using 2.2.4

Re: [fpc-pascal] XML Iteration

2010-04-28 Thread Frank Church
The funny thing is I have already read that wiki page, but did not recognize it in your description. When I added 'pascal' to the Google search, then it turned up on the first page.. FreePascal users ought to blog some more. ;-) On 27 April 2010 19:47, Luiz Americo Pereira Camara

Re: [fpc-pascal] XML Iteration

2010-04-28 Thread Lee Jenkins
Luiz Americo Pereira Camara wrote: Frank Church escreveu: I am glad to see someone with an interest in FPCs XML. Do you have some experience with XPath usage in PFC/Lazarus? Luiz, In Unit1.pas: XPathResult := EvaluateXPathExpression('//Descricao', XmlTree.DocumentElement); if

Re: [fpc-pascal] XML Iteration

2010-04-28 Thread Luiz Americo Pereira Camara
Lee Jenkins escreveu: Luiz Americo Pereira Camara wrote: Frank Church escreveu: I am glad to see someone with an interest in FPCs XML. Do you have some experience with XPath usage in PFC/Lazarus? Luiz, In Unit1.pas: XPathResult := EvaluateXPathExpression('//Descricao',

Re: [fpc-pascal] XML Iteration

2010-04-27 Thread Frank Church
I am glad to see someone with an interest in FPCs XML. Do you have some experience with XPath usage in PFC/Lazarus? On 27 April 2010 16:14, Lee Jenkins l...@datatrakpos.com wrote: This isn't still true for latter version of FPC like 2.4.1, right?

Re: [fpc-pascal] XML Iteration

2010-04-27 Thread Lee Jenkins
Frank Church wrote: I am glad to see someone with an interest in FPCs XML. Do you have some experience with XPath usage in PFC/Lazarus? No, other than some cursory google searches. I figured I'd be asking about that myself soon. -- Warm Regards, Lee

Re: [fpc-pascal] XML Iteration

2010-04-27 Thread Luiz Americo Pereira Camara
Frank Church escreveu: I am glad to see someone with an interest in FPCs XML. Do you have some experience with XPath usage in PFC/Lazarus? In this program: http://www.silvioprog.com.br/downloads/Cliente_SOAP_SAH.zip?attredirects=0d=1 you can find a simple usage of XPath + WST Luiz

Re: [fpc-pascal] XML Iteration

2010-04-27 Thread Frank Church
Thanks for the link. What is WST? My searches turn up something related to eclipse. On 27 April 2010 17:50, Luiz Americo Pereira Camara luiz...@oi.com.br wrote: Frank Church escreveu: I am glad to see someone with an interest in FPCs XML. Do you have some experience with XPath usage in

Re: [fpc-pascal] XML Iteration

2010-04-27 Thread Luiz Americo Pereira Camara
Frank Church escreveu: Thanks for the link. What is WST? My searches turn up something related to eclipse. Web Services Toolkit: http://wiki.lazarus.freepascal.org/Web_Service_Toolkit Luiz ___ fpc-pascal maillist -

Re: [fpc-pascal] XML Iteration

2010-04-27 Thread Marco van de Voort
In our previous episode, Lee Jenkins said: This isn't still true for latter version of FPC like 2.4.1, right? http://wiki.freepascal.org/XML_Tutorial#Printing_the_names_of_nodes A quick note on navigating the DOM tree: When you need to access nodes in sequence, it is best to use