[fpc-pascal] OOP and XML usage

Graeme Geldenhuys graemeg.lists at gmail.com
Fri Jan 29 07:27:52 CET 2010


Jorge Aldo G. de F. Junior wrote:
> and actually i prefer to setup properties of objects using xml
> properties instead of xml text
> 
> <tcpserver ip="192.168.1.1" port="80"/> instead of
> <tcpserver><ip>192.168.1.1</ip><port>80</port></tcpserver>

Both examples are valid XML, so I don't see any issue the way I am using
it. My previous example was just that, an example. My actual XML uses both
tag attributes and element text. The later is mainly used for longer text
in my xml file.



Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/




More information about the fpc-pascal mailing list