[fpc-pascal] OOP and XML usage
Jorge Aldo G. de F. Junior
jagfj80 at gmail.com
Wed Jan 27 16:19:12 CET 2010
i dont like this way of working with XML files...
im creating my own model using an Class factory and RTTI properties.
you register your classes in the class factory and the XML loader uses
a class function to select wich one to create for a given node. This
lets you have a lot more control over the process.
the same objects can save theyselves into another XML file thru a
property called AsXML.
Class Function XMLTag: String; Virtual;
and
Function AsXML : String; Virtual;
im using this to develop a Component system for Powtils... (But can be
used wherever needed)
More information about the fpc-pascal
mailing list