Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2011-07

Request Suggestions - XML Interface

1 message · 1 person ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Lee Jenkins

I'm writing a small program which utilizes PascalScript. All objects provided to scripts are Interface instances with reference counting. I am making available to scripts, the basic functionality most would need to use in the script such as HTTPClient, JSON, StringBuilder, etc.

I would like to provide an XML implementation for scripts in this application and I am unsure how to go about leveraging FPC's existing XML DOM framework as Interfaces since it does not implement interfaces.

The only thing I can think of is to wrap existing FPC DOM objects in other objects that implement the appropriate interfaces. Not sure how viable that would be and I am concerned with the overhead of basically duplicating pertinent objects in FPC DOM to represent the interface.

Any suggestions?

Thanks,

Warm Regards, Lee

Reply by email