Recent

Author Topic: xml data bindings for lazarus  (Read 10673 times)

herux

  • Full Member
  • ***
  • Posts: 102
xml data bindings for lazarus
« on: May 11, 2010, 02:38:55 am »
is there any xml data bindings for lazarus, like the one in Delphi

thanks.

herux

  • Full Member
  • ***
  • Posts: 102
Re: xml data bindings for lazarus
« Reply #1 on: May 11, 2010, 05:52:44 am »
anyone can answer my question ?

Leledumbo

  • Hero Member
  • *****
  • Posts: 8557
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: xml data bindings for lazarus
« Reply #2 on: May 11, 2010, 06:38:02 am »
Please be patient, not everyone here could / would answer your question.

I don't know the Delphi one, but Lazarus uses component streaming for doing (more or less) the same thing.

Wodzu

  • Full Member
  • ***
  • Posts: 171
Re: xml data bindings for lazarus
« Reply #3 on: May 11, 2010, 07:29:33 am »
Please be patient, not everyone here could / would answer your question.

I don't know the Delphi one, but Lazarus uses component streaming for doing (more or less) the same thing.

@Leledumbo  XML Data Binding in Delphi is a technology which creates a type-safe object which is representing an entire XML document in memory. It eases work with XML.

@herux It would be great to have such thing in FPC, however I doubt that it currently exists.

Leledumbo

  • Hero Member
  • *****
  • Posts: 8557
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: xml data bindings for lazarus
« Reply #4 on: May 11, 2010, 08:59:43 am »
Quote
XML Data Binding in Delphi is a technology which creates a type-safe object which is representing an entire XML document in memory. It eases work with XML.
Whoops! I think I read the wikipedia article too fast :-[

herux

  • Full Member
  • ***
  • Posts: 102
Re: xml data bindings for lazarus
« Reply #5 on: May 11, 2010, 09:49:32 am »
There are two units that do not exist in lazarus, XMLDoc.pas and XMLIntf.pas
this unit as the main framework in the wizard XMLDataBinding,
I try to copy it to lazarus, but other issues arise when there is no interface at DOM.pp something like IDOMNode = interface (IInterface)

hmmm .. :( :(
maybe i should create it manually, but it would be better if there is such a tool in lazarus.

or maybe later if there is time I will help

thanks.

Wodzu

  • Full Member
  • ***
  • Posts: 171
Re: xml data bindings for lazarus
« Reply #6 on: May 11, 2010, 11:09:57 am »
@Herus

Delphi's XML Data Binding is based on MSXML which is a COM object. As you know, Lazarus is a crossplatform utility so Lazarus version would be without Microsoft's implementation of DOM model.

Even if you would like to do this to work only under Windows there are problems (as far as I know) with COM interfaces in FPC. The reason is again the same - COM is Microsoft's technology thus not crossplatform which concludes in very little support of COM's in FPC. (Despite the fact that some number of useres would want to use this possibility.)

In other words, this could be definitely done but without COM dependencies. 

herux

  • Full Member
  • ***
  • Posts: 102
Re: xml data bindings for lazarus
« Reply #7 on: May 12, 2010, 01:12:36 am »
I am working on linux.

thanks you

 

TinyPortal © 2005-2018