[Lazarus] How to get the package version from a LPK file?
graemeg.lists at gmail.com
Tue Nov 29 11:42:28 CET 2011
On 29/11/2011, Sergei Gorelkin <sergei_gorelkin at mail.ru> wrote:
> To add to this, the core DOM is simply not supposed to do things like path
OK, then lets simplify the problem and remove the usage of a "node
path". Can you solve to original problem using FPC DOM, but doing it
one node retrieval at a time. eg:
xmdoc := TXMLDoc.loadfromfile('the package.lpk')'
configenode := xmldoc.<something here>'
packagenode := confignode.<something here>
versionnode := packagenode.<something here>
major_value := versionnode.<something here>
If the FPC DOM is so per W3C spec, surely the W3C spec covers retrieve
of simple node somewhere in the XML file? I would just like to know
how - so I can LEARN something today.
- Graeme -
fpGUI - a cross-platform Free Pascal GUI toolkit
More information about the Lazarus