Re: [lazarus] XML Config

2007-12-23 Thread Igor Pokorny
> Putting humour aside, TXMLConfig was initially designed as in Thomas's > tutorial, but later it was changed to a TComponent descendant. This > enables you to drop it on a form and assign its properties in the Object > Inspector. However, being a TComponent descendant requires having a > construct

Re: [lazarus] XML Config

2007-12-22 Thread Andrew Haines
Sergei Gorelkin wrote: > Putting humour aside, TXMLConfig was initially designed as in Thomas's > tutorial, but later it was changed to a TComponent descendant. This > enables you to drop it on a form and assign its properties in the Object > Inspector. However, being a TComponent descendant requi

Re: [lazarus] XML Config

2007-12-22 Thread Sergei Gorelkin
Igor Pokorny wrote: Thanks, it realy works. I am probably too old to understand such constructions, it's over of my imagination. I was certain objects in programming mirror the real world. Such construction is like to get married and to select a wife after a marriage. Strange In real world,

Re: [lazarus] XML Config

2007-12-22 Thread Andrew Haines
Igor Pokorny wrote: > Thanks, it realy works. > I am probably too old to understand such constructions, it's over of > my imagination. I was certain objects in programming mirror the real > world. Such construction is like to get married and to select a wife > after a marriage. Strange > > Igo

Re: [lazarus] XML Config

2007-12-22 Thread Igor Pokorny
Thanks, it realy works. I am probably too old to understand such constructions, it's over of my imagination. I was certain objects in programming mirror the real world. Such construction is like to get married and to select a wife after a marriage. Strange Igor On Dec 22, 2007 9:53 PM, ik <[E

Re: [lazarus] XML Config

2007-12-22 Thread ik
Try this: cfg: TXMLConfig.Create(nil); cfg.Filename := 'myconfig.xml'; Ido On Dec 22, 2007 10:42 PM, Igor Pokorny <[EMAIL PROTECTED]> wrote: > Hello friends, > I would like to know how to open existing XML file for TXMLConfig. > > Thomas Zastrow's tutorial suggests to use > > cfg := TXMLConfig.

Re: [lazarus] *.xml config files under Windows

2007-07-19 Thread Marco van de Voort
On Thu, Jul 19, 2007 at 11:03:16PM +0200, Mattias G?rtner wrote: > > On Thu, Jul 19, 2007 at 06:00:55PM +0200, Mattias G?rtner wrote: > > > Zitat von Marco van de Voort <[EMAIL PROTECTED]>: > > > > > > > On Thu, Jul 19, 2007 at 01:06:36AM +0200, Vincent Snijders wrote: > > > > >>> This is likely to

Re: [lazarus] *.xml config files under Windows

2007-07-19 Thread Marc Weustink
Mattias Gärtner wrote: Zitat von Marco van de Voort <[EMAIL PROTECTED]>: On Thu, Jul 19, 2007 at 06:00:55PM +0200, Mattias G?rtner wrote: Zitat von Marco van de Voort <[EMAIL PROTECTED]>: On Thu, Jul 19, 2007 at 01:06:36AM +0200, Vincent Snijders wrote: This is likely to change before 1.0 t

Re: [lazarus] *.xml config files under Windows

2007-07-19 Thread Mattias Gärtner
Zitat von Marco van de Voort <[EMAIL PROTECTED]>: > On Thu, Jul 19, 2007 at 06:00:55PM +0200, Mattias G?rtner wrote: > > Zitat von Marco van de Voort <[EMAIL PROTECTED]>: > > > > > On Thu, Jul 19, 2007 at 01:06:36AM +0200, Vincent Snijders wrote: > > > >>> This is likely to change before 1.0 to th

Re: [lazarus] *.xml config files under Windows

2007-07-19 Thread Marco van de Voort
On Thu, Jul 19, 2007 at 06:00:55PM +0200, Mattias G?rtner wrote: > Zitat von Marco van de Voort <[EMAIL PROTECTED]>: > > > On Thu, Jul 19, 2007 at 01:06:36AM +0200, Vincent Snijders wrote: > > >>> This is likely to change before 1.0 to the some applictiondata > > >>> directory, > > >>> as given b

Re: [lazarus] *.xml config files under Windows

2007-07-19 Thread Mattias Gärtner
Zitat von Marco van de Voort <[EMAIL PROTECTED]>: > On Thu, Jul 19, 2007 at 01:06:36AM +0200, Vincent Snijders wrote: > >>> This is likely to change before 1.0 to the some applictiondata directory, > >>> as given by the sysutils.GetAppConfigDir (or what is that function > >>> name?). > >> Keep it

Re: [lazarus] *.xml config files under Windows

2007-07-19 Thread Marco van de Voort
On Thu, Jul 19, 2007 at 01:06:36AM +0200, Vincent Snijders wrote: >>> This is likely to change before 1.0 to the some applictiondata directory, >>> as given by the sysutils.GetAppConfigDir (or what is that function >>> name?). >> Keep it versioned, or you might loose the ability of having multipl

Re: [lazarus] *.xml config files under Windows

2007-07-19 Thread Vincent Snijders
Felipe Monteiro de Carvalho schreef: On 7/19/07, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > In Unix we don't have an option, but on Windows we do. And why do you not have an option on Unix ?? an option to store the configuration file on the application directory. Of course you have:

Re: [lazarus] *.xml config files under Windows

2007-07-19 Thread Vincent Snijders
Felipe Monteiro de Carvalho schreef: On 7/19/07, Vincent Snijders <[EMAIL PROTECTED]> wrote: It won't be different from the current situation in *nix: you have to use to pass the config dir on the command line if you want to use different config files. Yes, but what is the benefit in doing so?

Re: [lazarus] *.xml config files under Windows

2007-07-19 Thread Felipe Monteiro de Carvalho
On 7/19/07, Michael Van Canneyt <[EMAIL PROTECTED]> wrote: > In Unix we don't have an option, but on Windows we do. And why do you not have an option on Unix ?? an option to store the configuration file on the application directory. -- Felipe Monteiro de Carvalho

Re: [lazarus] *.xml config files under Windows

2007-07-19 Thread Michael Van Canneyt
On Thu, 19 Jul 2007, Felipe Monteiro de Carvalho wrote: > On 7/19/07, Vincent Snijders <[EMAIL PROTECTED]> wrote: > > It won't be different from the current situation in *nix: you have to > > use to pass the config dir on the command line if you want to use > > different config files. > > Yes,

Re: [lazarus] *.xml config files under Windows

2007-07-19 Thread Felipe Monteiro de Carvalho
On 7/19/07, Vincent Snijders <[EMAIL PROTECTED]> wrote: It won't be different from the current situation in *nix: you have to use to pass the config dir on the command line if you want to use different config files. Yes, but what is the benefit in doing so? This only makes having multiple indep

Re: [lazarus] *.xml config files under Windows

2007-07-18 Thread Vincent Snijders
Marco van de Voort schreef: On Wed, Jul 18, 2007 at 11:04:19AM +0200, Vincent Snijders wrote: Graeme Geldenhuys schreef: Hi, Where does Lazarus under Windows store the *.xml config files? For example under Linux it is or the Lazarus directory or the ~/.lazarus directory. What is the equivalen

Re: [lazarus] *.xml config files under Windows

2007-07-18 Thread Marco van de Voort
On Wed, Jul 18, 2007 at 11:04:19AM +0200, Vincent Snijders wrote: > Graeme Geldenhuys schreef: >> Hi, >> Where does Lazarus under Windows store the *.xml config files? For >> example under Linux it is or the Lazarus directory or the ~/.lazarus >> directory. What is the equivalent under Windows? >

Re: [lazarus] *.xml config files under Windows

2007-07-18 Thread Graeme Geldenhuys
On 18/07/07, Vincent Snijders <[EMAIL PROTECTED]> wrote: It is in the lazarus executable directory. This is likely to change before 1.0 to the some applictiondata directory, as given by the sysutils.GetAppConfigDir (or what is that function name?). Ah ok. I thought GetAppConfigDir() was alre

Re: [lazarus] *.xml config files under Windows

2007-07-18 Thread Vincent Snijders
Graeme Geldenhuys schreef: Hi, Where does Lazarus under Windows store the *.xml config files? For example under Linux it is or the Lazarus directory or the ~/.lazarus directory. What is the equivalent under Windows? It is in the lazarus executable directory. This is likely to change before

RE: [lazarus] XML and Record type

2007-03-19 Thread Pieter Valentijn
:08 Aan: lazarus@miraclec.com Onderwerp: Re: [lazarus] XML and Record type Pieter Valentijn wrote: > TJanXml is a opensource XML parcer in Delphi made by Jan Verhoeven He > is a Ducth man who inspired me sometime ago to make opensource my > self. It is spelled 'parser'

Re: [lazarus] XML and Record type

2007-03-19 Thread Bram Kuijvenhoven
Pieter Valentijn wrote: TJanXml is a opensource XML parcer in Delphi made by Jan Verhoeven He is a Ducth man who inspired me sometime ago to make opensource my self. It is spelled 'parser' with an s :) Bram _ To unsubscribe:

RE: [lazarus] XML and Record type

2007-03-19 Thread Pieter Valentijn
7 Aan: lazarus@miraclec.com Onderwerp: Re: [lazarus] XML and Record type Interesting. I have to mention that the main reason for my question is that I want to use XML for data storage, because I can see XML being able to withstand changes in the data format. So that brings up the question in my

Re: [lazarus] XML and Record type

2007-03-19 Thread George Lober
Interesting. I have to mention that the main reason for my question is that I want to use XML for data storage, because I can see XML being able to withstand changes in the data format. So that brings up the question in my mind, how would the example code handle addition or removal of record el

RE: [lazarus] XML and Record type

2007-03-19 Thread Pieter Valentijn
ent, PropList[i])), Propname, ABaseNode); end; end; tkArray: begin Showmessage('Set array ' + PropList[i]^.Name); end; end; // end case except on e: Exception do end; end;

Re: [lazarus] XML and Record type

2007-03-18 Thread Bram Kuijvenhoven
George Lober wrote: A question guys. Are there any utilities/functions out there to convert a pascal record type into XML format and back? Is there such an animal, or am I asking for too much? Not for as far as I known, but I think you could either - use classes with published methods & RTTI;

Re: [lazarus] XML and XPath?

2007-02-15 Thread Kris Leech
Lee Jenkins wrote: Kris Leech wrote: Can you forward a copy of the fixed unit to my email? And to me as well, so I can commit the fix in SVN :-) It may still need a few bug fixes yet, Ive sent some feedback to Sebastian but I know he is really busy at the moment. However the basics w

Re: [lazarus] XML and XPath?

2007-02-15 Thread Lee Jenkins
Kris Leech wrote: Can you forward a copy of the fixed unit to my email? And to me as well, so I can commit the fix in SVN :-) It may still need a few bug fixes yet, Ive sent some feedback to Sebastian but I know he is really busy at the moment. However the basics work, its just a few

Re: [lazarus] XML and XPath?

2007-02-15 Thread Kris Leech
Michael Van Canneyt wrote: On Mon, 12 Feb 2007, Lee Jenkins wrote: Kris Leech wrote: Lee Jenkins wrote: Lepidosteus wrote: In fpc/fcl/xml there is a xpath unit. Never used it, don't know if it works, guess it should. Ahh, you're correct. I'll poke around

Re: [lazarus] XML and ThunderBird

2007-02-13 Thread David Lyon
Hi Nataraj, This is already possible with PreisShare. But it is not fully in Lazarus yet. Hopefully you have windows on those machines. If so, then everything that you are asking for is already there. Regards David Nataraj S Narayan wrote: Hi My initial plan was to setup a web page thru

Re: [lazarus] XML and ThunderBird

2007-02-13 Thread Nataraj S Narayan
Hi My initial plan was to setup a web page thru which users can key in their requisitions , and the Purchase department will get it direct from the mysql database. But our problem is that offices are separated geographically and no connectivity between them. Also impossible to give all users N

Re: [lazarus] XML and XPath?

2007-02-12 Thread Michael Van Canneyt
On Mon, 12 Feb 2007, Lee Jenkins wrote: > Kris Leech wrote: > > Lee Jenkins wrote: > > > Lepidosteus wrote: > > > > In fpc/fcl/xml there is a xpath unit. > > > > Never used it, don't know if it works, guess it should. > > > > > > > > > > Ahh, you're correct. I'll poke around the sources a bit a

Re: [lazarus] XML and XPath?

2007-02-12 Thread Lee Jenkins
Kris Leech wrote: Lee Jenkins wrote: Lepidosteus wrote: In fpc/fcl/xml there is a xpath unit. Never used it, don't know if it works, guess it should. Ahh, you're correct. I'll poke around the sources a bit and see if I can figure it out. It broken at the moment, but I just got a fixed unit

Re: [lazarus] XML and XPath?

2007-02-12 Thread Kris Leech
Lee Jenkins wrote: Lepidosteus wrote: In fpc/fcl/xml there is a xpath unit. Never used it, don't know if it works, guess it should. Ahh, you're correct. I'll poke around the sources a bit and see if I can figure it out. It broken at the moment, but I just got a fixed unit today from Sebast

Re: [lazarus] XML and XPath?

2007-02-11 Thread Lee Jenkins
Lepidosteus wrote: In fpc/fcl/xml there is a xpath unit. Never used it, don't know if it works, guess it should. Ahh, you're correct. I'll poke around the sources a bit and see if I can figure it out. Thanks, -- Warm Regards, Lee

Re: [lazarus] XML and ThunderBird

2007-02-11 Thread Lepidosteus
Didn't fully understood the question here, but is the process to show to the user, either on your website or in your software, a form than when submitted will mail you with an order ? If yes, since you control the mail creation, why not add your own data at the end of the mail, which purpose woul

Re: [lazarus] XML and XPath?

2007-02-11 Thread Lepidosteus
In fpc/fcl/xml there is a xpath unit. Never used it, don't know if it works, guess it should. -- Vianney Devreese - Lepidosteus http://lepidosteus.com _ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as

Re: [lazarus] XML and ThunderBird

2007-02-10 Thread Felipe Monteiro de Carvalho
On 2/10/07, ik <[EMAIL PROTECTED]> wrote: Regarding the XML question, the HTML you have posted is a broken XML that is, it is not xhtml, and some tags (such as your are not closed -> ) Actually I think it´s worse then that. Some tags are closed, but were never opened, like the beginning: A

Re: [lazarus] XML and ThunderBird

2007-02-10 Thread ik
Hi, Regarding the XML question, the HTML you have posted is a broken XML that is, it is not xhtml, and some tags (such as your are not closed -> ) Ido On 2/10/07, Nataraj S Narayan <[EMAIL PROTECTED]> wrote: Hi I am planning to implement Purchase requisition over E-mail, using Thunderbird Cl

Re: [lazarus] XML and ThunderBird

2007-02-10 Thread David Lyon
Hi Nataraj, This is a fairly common requirement. At the moment, in our PreisShare project, we are reading price information sent by email. But I would really like to extend this to Purchase Orders also, as we have some clients who would be interested in using this also. If you would like

RE: [lazarus] Xml

2006-08-21 Thread Jesus Reyes
--- Wilder Gonzalez Diaz <[EMAIL PROTECTED]> escribió: > This is the xml file I am trying to load > > [..] > > > > And the character is the 'ó' > > How can I solve this? I have tried replacing the xml ISO encoding > to UTF-8 but still having the same problem > Just changing the enco

RE: [lazarus] Xml

2006-08-21 Thread Jesus Reyes
--- Wilder Gonzalez Diaz <[EMAIL PROTECTED]> escribió: > This is the xml file I am trying to load > > [..] > > > > And the character is the 'ó' > > How can I solve this? I have tried replacing the xml ISO encoding > to UTF-8 but still having the same problem > Just changing the enco

Re: [lazarus] Xml

2006-08-21 Thread Mattias Gaertner
g the xml ISO encoding to > UTF-8 but still having the same problem > > > -----Original Message- > From: Mattias Gaertner [mailto:[EMAIL PROTECTED] > Sent: Monday, August 21, 2006 2:26 PM > To: lazarus@miraclec.com > Subject: Re: [lazarus] Xml > > On Mon,

RE: [lazarus] Xml

2006-08-21 Thread Wilder Gonzalez Diaz
I edit it manually... By using tstringlists -Original Message- From: Cesar Romero [mailto:[EMAIL PROTECTED] Sent: Monday, August 21, 2006 2:50 PM To: lazarus@miraclec.com Subject: Re: [lazarus] Xml Where did you edit that? The editor was configurated to iso-8859-1 or UTF-8? I had

Re: [lazarus] Xml

2006-08-21 Thread Cesar Romero
solve this? I have tried replacing the xml ISO encoding to UTF-8 but still having the same problem -Original Message- From: Mattias Gaertner [mailto:[EMAIL PROTECTED] Sent: Monday, August 21, 2006 2:26 PM To: lazarus@miraclec.com Subject: Re: [lazarus] Xml On Mon, 21 Aug 2006 14:13:4

RE: [lazarus] Xml

2006-08-21 Thread Wilder Gonzalez Diaz
nday, August 21, 2006 2:26 PM To: lazarus@miraclec.com Subject: Re: [lazarus] Xml On Mon, 21 Aug 2006 14:13:48 -0500 "Wilder Gonzalez Diaz" <[EMAIL PROTECTED]> wrote: > I am loading xml data using XMLRead unit provided with FCL... But it > have encoding problems with tildes...

Re: [lazarus] Xml

2006-08-21 Thread Mattias Gaertner
On Mon, 21 Aug 2006 14:13:48 -0500 "Wilder Gonzalez Diaz" <[EMAIL PROTECTED]> wrote: > I am loading xml data using XMLRead unit provided with FCL... But it > have encoding problems with tildes... I am working with spanish > language so tildes are required... Does anyone knows how to fix this > pro